574
edits
m (→blend: fix copy paste error) |
(→Uniforms passed to shaders outside the xml effect framework: Some new info from Icecode) |
||
Line 463: | Line 463: | ||
|<tt>fg_ViewMatrix</tt> | |<tt>fg_ViewMatrix</tt> | ||
|<tt>mat4</tt> | |<tt>mat4</tt> | ||
|In fullscreen pass only, view matrix used to transform | |In fullscreen pass only, view matrix used to transform from world to view space. Same as osg_ViewMatrix, but for fullscreen pass. | ||
|- | |- | ||
|<tt>fg_ViewMatrixInverse</tt> | |<tt>fg_ViewMatrixInverse</tt> | ||
|<tt>mat4</tt> | |<tt>mat4</tt> | ||
|In fullscreen pass only, view matrix inverse used to transform | |In fullscreen pass only, view matrix inverse used to transform from view to world space. Same as osg_ViewMatrixInverse but for fullscreen pass. | ||
|- | |- | ||
|<tt>fg_ProjectionMatrixInverse</tt> | |<tt>fg_ProjectionMatrixInverse</tt> | ||
|<tt>mat4</tt> | |<tt>mat4</tt> | ||
|In fullscreen pass only, projection matrix inverse | |In fullscreen pass only, projection matrix inverse | ||
|- | |- | ||
|<tt>fg_CameraPositionCart</tt> | |<tt>fg_CameraPositionCart</tt> | ||
Line 483: | Line 483: | ||
|<tt>fg_SunAmbientColor</tt> | |<tt>fg_SunAmbientColor</tt> | ||
|<tt>vec4</tt> | |<tt>vec4</tt> | ||
| | |For fullscreen pass only, sun information as lightsource[0] is not available in fullscreen pass. | ||
|- | |- | ||
|<tt>fg_SunDiffuseColor</tt> | |<tt>fg_SunDiffuseColor</tt> | ||
|<tt>vec4</tt> | |<tt>vec4</tt> | ||
| | |For fullscreen pass only, sun information as lightsource[0] is not available in fullscreen pass. | ||
|- | |- | ||
|<tt>fg_SunSpecularColor</tt> | |<tt>fg_SunSpecularColor</tt> | ||
|<tt>vec4</tt> | |<tt>vec4</tt> | ||
| | |For fullscreen pass only, sun information as lightsource[0] is not available in fullscreen pass. | ||
|- | |- | ||
|<tt>fg_SunDirection</tt> | |<tt>fg_SunDirection</tt> | ||
|<tt>vec3</tt> | |<tt>vec3</tt> | ||
| | |For fullscreen pass only, sun information as lightsource[0] is not available in fullscreen pass. | ||
|- | |- | ||
|<tt>fg_FogColor</tt> | |<tt>fg_FogColor</tt> | ||
Line 527: | Line 527: | ||
|<tt>osg_ViewMatrix</tt> | |<tt>osg_ViewMatrix</tt> | ||
|<tt>mat4</tt> | |<tt>mat4</tt> | ||
|Defined by OSG, used only when working on actual geometry | |Defined by OSG, used only when working on actual geometry. Transforms from world to view space. | ||
|- | |- | ||
|<tt>osg_ViewMatrixInverse</tt> | |<tt>osg_ViewMatrixInverse</tt> | ||
|<tt>mat4</tt> | |<tt>mat4</tt> | ||
|Defined by OSG, used only when working on actual geometry | |Defined by OSG, used only when working on actual geometry. Transforms from view to world space. | ||
|- | |- | ||
|<tt>osg_SimulationTime</tt> | |<tt>osg_SimulationTime</tt> |
edits