Project Rembrandt: Difference between revisions

Line 62: Line 62:
=== Predefined uniforms ===
=== Predefined uniforms ===
These glsl uniforms don't need to be declared in the effect file.
These glsl uniforms don't need to be declared in the effect file.
{|border="1" cellspacing="0" cellpadding="2"
{|border="1" cellspacing="0" cellpadding="3"
!Name
!Name
!Type
!Type
Line 86: Line 86:
|<tt>vec2</tt>
|<tt>vec2</tt>
|Dimensions of the buffer, used to convert gl_FragCoord into the range [0..1][0..1]
|Dimensions of the buffer, used to convert gl_FragCoord into the range [0..1][0..1]
|-
|<tt>osg_ViewMatrix</tt>
|<tt>mat4</tt>
|Defined by OSG
|-
|<tt>osg_ViewMatrixInverse</tt>
|<tt>mat4</tt>
|Defined by OSG
|}
|}
They still have to be declared in the fragment or the vertex shader to be used.
They still have to be declared in the fragment or the vertex shader to be used.
269

edits