Changeset 1407
- Timestamp:
- May 21, 2012, 11:25:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/testmaterial.lolfx
r1406 r1407 3 3 */ 4 4 5 technique Foo // can have lots of different techniques in a single lolfx file 5 // Can have lots of different techniques in a single lolfx file, 6 // especially if they share common shader code. 7 technique Foo 6 8 { 9 // Multiple passes, with alpha on/off, with various blending methods, 10 // with depth test disabled... 7 11 pass p0 8 12 { … … 34 38 35 39 // Ogre crap 40 41 // The D3D11 way, but we must make it work with GLSL too 36 42 SetBlendState(AdditiveBlending, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF); 37 43 SetDepthStencilState(DisableDepth, 0); 38 39 // D3D11 way40 SetBlendState()41 SetDepthStencilState()42 44 SetRasterizerState() 43 45 … … 63 65 } 64 66 65 -- GLSL.Vert -- 67 /* Defines GLSL shader "Prout" */ 68 69 #section GLSL.Prout 66 70 67 71 #version 120 … … 80 84 } 81 85 86 /* Defines GLSL shader "Zob" */ 87 88 #section GLSL.Zob 89 90 void main(void) 91 { 92 shit fuck fuck shit; 93 } 94 95 /* Defines HLSL shader "Prout" */ 96 97 #section HLSL.Prout 98 99 void main(void) 100 { 101 /* Blah */ 102 } 103
Note: See TracChangeset
for help on using the changeset viewer.