Added normal based material.
This commit is contained in:
10
media/materials/programs/NormalFragmentProgram.cg
Normal file
10
media/materials/programs/NormalFragmentProgram.cg
Normal file
@ -0,0 +1,10 @@
|
||||
struct v2f
|
||||
{
|
||||
float4 Position : POSITION; //in projection space
|
||||
float4 Normal : TEXCOORD0;
|
||||
};
|
||||
|
||||
float4 main(v2f IN) : COLOR
|
||||
{
|
||||
return abs(IN.Normal);
|
||||
}
|
Reference in New Issue
Block a user