Nintendo OpenGL: Difference between revisions

Smea (talk | contribs)
mapped out a bunch of shader program struct fields
Smea (talk | contribs)
Line 39: Line 39:
| 0x04
| 0x04
| Number of program-specific uniforms
| Number of program-specific uniforms
|-
| 0x414
| 0x04
| Pointer to vertex shader struct
|-
|-
| 0x64C
| 0x64C
Line 102: Line 106:
| 0x04
| 0x04
| dmp_FragmentLightSource[k].distanceAttenuationScale (float)
| dmp_FragmentLightSource[k].distanceAttenuationScale (float)
|}
vertex shader object:
{| class="wikitable" border="1"
! Offset
!  Size
!  Description
|-
| 0x0
| 0x4
| Pointer to shader code data
|-
| 0x4
| 0x4
| Size of shader code (in words)
|}
|}