and what did you expect from that shader?
when i apply it to a model the color changes as the camera-angle changes

btw, both of you forgot the bracket at the beginning of the vertexshader asm section

so lets look:

Code:
 
technique test
{
pass P0
{
VertexShaderConstant[0]=<matWorldViewProj>;
VertexShaderConstant[4]=<matWorld>;
VertexShaderConstant[10]= <vecLight>;
VertexShaderConstant[15]= <vecViewDir>;

Texture[0] = <entSkin1>;
Texture[1] = <entSkin2>;

VertexShader = asm
{
vs_1_1

dcl_position v0
dcl_normal v3
dcl_texcoord0 v7

def c16, 0, 175, 175, 100
def c20, 175, 0.011,0,0

m4x4 oPos, v0,c0

sub r0, v3, -c15 //r0 now contains : normal - ( - vecViewDir)

mul r0, r0, c16 //r0 gets multiplied by cyan

mul oD0, r0, c20.y //ro gets scaled down by 0.011
};

}
}




Last edited by ello; 07/12/05 07:11.