Lasse Öörni
|
3969b69b0d
Refactor material shader parameter animations so that they happen in response to update events, the same as component/node attribute animations. This fixes material animations depending on visibility and therefore possibly going out of sync from other updates. Add possibility to associate material with scene to make it use the scene attribute update event instead of the global update event.
|
11 years ago |
Lasse Öörni
|
e82b3d53a1
Added support for zones defining a texture (either cube or 3D), that will be available in pixel shaders when rendering objects inside the zone.
|
11 years ago |
Lasse Öörni
|
981b5bcac4
Use viewport sized intermediate rendertargets so that pixels outside the viewport never leak into post-processing. Added viewport multiplier mode to renderpath definition. Closes #265.
|
11 years ago |
aster
|
d0b1036001
Add material shader animation.
|
11 years ago |
Yao Wei Tjong 姚伟忠
|
46285baf97
Refactor build scripts to group Urho3D specific build option.
|
11 years ago |
Lasse Öörni
|
ee9868e29e
Refactor setting global & camera shader parameters to functions. Used both by Batch & View. Ensure that same parameters are set in both scene and quad (postprocess) rendering. Note that quad rendering still does not use the camera's real projection matrix to ensure stability.
|
11 years ago |
Lasse Öörni
|
1418fb7e83
Changed the SM2.0 tradeoffs to allow 4-sample shadow mapping and to verify that shaders again work on GPU's without hardware shadow compare (eg. Radeon 9800.) Removed unnecessary shader code & simplified the LitSolid & light volume shaders.
|
11 years ago |
Lasse Öörni
|
c3425334a3
Switch forward light calculations back to world space instead of tangent space to avoid light attenuation bugs when TBN matrix is not orthogonal. Shader code becomes simpler and more similar between forward and deferred, and number of vertex shader variations is reduced, but disadvantage is a more complex pixel shader which requires disabling expensive features on SM2.0 to avoid exceeding the arithmetic instruction limit. Fix cube mapped point light displaying the cube map upside down. Closes #276.
|
11 years ago |
Lasse Öörni
|
882f4da62e
Added quad rendering missing elapsed time parameter fix from szamq. Also add delta time parameter to batch rendering. Closes #272.
|
11 years ago |
Lasse Öörni
|
094006ef91
Added brightness attribute to Light. Added separate equality test with and without epsilon to Color, similar to Vector2/3/4.
|
11 years ago |
Lasse Öörni
|
0ddc3c774e
Clean up Batch code. Give larger sorting priority to negative lights so that they are applied right after ambient, followed by additive lights.
|
11 years ago |
Lasse Öörni
|
02e543ba5c
Support for per-pixel negative lights. Added BLEND_SUBTRACT & BLEND_SUBTRACTALPHA blend modes. Light code cleanup.
|
11 years ago |
Lasse Öörni
|
bfd968f9d7
Removed the base batch / non-base batch separation from BatchGroup. This is only needed for light queues, so rather have LightBatchQueue have separate queues for base & non-base.
|
11 years ago |
Lasse Öörni
|
4c02e19352
Increased the OpenGL ES constant depth bias adjustment to reduce self-shadowing artifacts. Do not use cascaded shadow mapping on OpenGL ES, so that the low quality shadow mode can avoid dependent texture reads altogether for much higher performance on iOS. Updated documentation of the GetPlatform() function.
|
12 years ago |
Lasse Öörni
|
b1a7a8dade
Exposed missing QUALITY_MAX constant to AngelScript. Do not assume the default zone has black fog (when used for additive pass.) Do not reload material shaders if material quality stayed same. Separate error in D3D9ShaderVariation Create() if the owning shader has expired, as on OpenGL.
|
12 years ago |
Lasse Öörni
|
4d6b9c2061
Prevent division by zero.
|
12 years ago |
Lasse Öörni
|
b76823a317
Added height fog mode boolean to Zone. Apply height fog shaders automatically. Changed height fog parameters to be relative to the zone node.
|
12 years ago |
Lasse Öörni
|
ea334e4393
Merge branch 'master' into shader-refactor
|
12 years ago |
Lasse Öörni
|
6d5ddc23e0
Bump the copyright for 2014.
|
12 years ago |
Lasse Öörni
|
417e62f106
Detect deferred light volume batch and subtract camera position only in that case to allow the pixel shader light parameters (light position, shadow matrices etc.) to also be used in forward rendering if necessary.
|
12 years ago |
primitivewaste
|
d4fb9a9450
Add Zone height fog support, HeightFog shader option and techniques.
|
12 years ago |
Lasse Öörni
|
3553b287ac
Reflection plane support in Camera. Reflection plane clipping not yet implemented.
|
12 years ago |
Lasse Öörni
|
7636bd6310
Fixed depth getting unnecessarily reset when ping-ponging rendertargets for a pass that both reads & writes the scene viewport.
|
12 years ago |
Lasse Öörni
|
42ae752d2d
Allow BillboardSet / ParticleEmitter to choose whether billboards should face the camera or follow the node orientation. Closes #22.
|
12 years ago |
Lasse Öörni
|
c20257cdf7
Merged the shaderData_ and worldTransform_ members of Batch & SourceBatch. The idea is that a batch can define multiple world transforms. For static geometry this means instance transforms. For skinned geometry they are bone transforms instead.
|
12 years ago |
Lasse Öörni
|
26a9bc763e
Added Temporary flag to Serializable, which means it will not be saved if enabled. Currently the sub-nodes created by Terrain are marked temporary.
|
12 years ago |
Wei Tjong Yao
|
02512cecf9
In order to move the out-of-source 'build' directory back to Urho3D project root directory, all the source codes sub-directories are now moved down one level to a new directory under project root called 'Source'.
|
12 years ago |