Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ****** Input:
- // LGSL version of C2E1v_green from "The Cg Tutorial" (Addison-Wesley, ISBN
- // 0321194969) by Randima Fernando and Mark J. Kilgard. See page 38.
- float3 C2E1v_green(in float2 position : ATTRIBUTE_0, out float4 NDCPosition : HPOS) : INTERPOLATOR_0
- {
- NDCPosition = float4(position,0,1);
- return float3(0,1,0);
- }
- ****** Output:
- uniform vec2 position;
- vec3 main() : INTERPOLATOR_0
- {
- vec4 NDCPosition; //HPOS
- NDCPosition = float4(position,0,1);
- gl_TexCoord[0] = float3(0,1,0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement