Browse Source

gpu: irrelevant tweaks to a test material file.

legacy
Sam Hocevar sam 12 years ago
parent
commit
55a195d931
1 changed files with 28 additions and 5 deletions
  1. +28
    -5
      src/gpu/testmaterial.lolfx

+ 28
- 5
src/gpu/testmaterial.lolfx View File

@@ -2,8 +2,12 @@
* LolFx Test Material * LolFx Test Material
*/ */


technique Foo // can have lots of different techniques in a single lolfx file
// Can have lots of different techniques in a single lolfx file,
// especially if they share common shader code.
technique Foo
{ {
// Multiple passes, with alpha on/off, with various blending methods,
// with depth test disabled...
pass p0 pass p0
{ {
texture[0] = null; texture[0] = null;
@@ -33,12 +37,10 @@ technique Foo // can have lots of different techniques in a single lolfx file
pixelshader = ... pixelshader = ...


// Ogre crap // Ogre crap

// The D3D11 way, but we must make it work with GLSL too
SetBlendState(AdditiveBlending, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF); SetBlendState(AdditiveBlending, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF);
SetDepthStencilState(DisableDepth, 0); SetDepthStencilState(DisableDepth, 0);

// D3D11 way
SetBlendState()
SetDepthStencilState()
SetRasterizerState() SetRasterizerState()


SetVertexShader SetVertexShader
@@ -62,7 +64,9 @@ technique Foo // can have lots of different techniques in a single lolfx file
} }
} }


/* Defines GLSL shader "Prout" */

#section GLSL.Prout


#version 120 #version 120


@@ -79,3 +83,21 @@ void main(void)
... ...
} }


/* Defines GLSL shader "Zob" */

#section GLSL.Zob

void main(void)
{
shit fuck fuck shit;
}

/* Defines HLSL shader "Prout" */

#section HLSL.Prout

void main(void)
{
/* Blah */
}


Loading…
Cancel
Save