Last change
on this file since 9408 was
9408,
checked in by davidsa, 12 years ago
|
Added: rudimentary stencil outline glow shader, very basic and looks pretty ugly, but good enough to test stencil buffer functionality
|
File size:
452 bytes
|
Line | |
---|
1 | void main(float4 position : POSITION, float3 normal : NORMAL, float2 uv : TEXCOORD0, out float4 oPosition : POSITION, out float2 oUv : TEXCOORD0, out float4 colour : COLOR, |
---|
2 | uniform float4x4 worldViewProjMatrix, uniform float size_value, uniform float time ) |
---|
3 | { |
---|
4 | float4 myPosition = position; |
---|
5 | myPosition.xyz += size_value * (1.0 + (sin(time * 5.0) + 1.0) / 5.0 ) * normal; |
---|
6 | oPosition = mul(worldViewProjMatrix, myPosition); |
---|
7 | } |
---|
8 | |
---|
Note: See
TracBrowser
for help on using the repository browser.