A beginner's question of VS
I have read HLSL and VS from "Introduction to 3D Game Programming with DirectX 9.0" these days,and I practised Cartoon Shader today,but I find I can't outline silhouette following this book.It says the input semantic NORMAL1 and the NORMAL2 refer to faces' normal around the vertex,I doubt it's only predefined in the author's model,because I didn't say any effect with my program.If NORMAL1 and NORMAL2 are indicate normals as the author says,then what's the meaning of NORMAL3~NORMAL15?
hi,
I understand that toon shaders use a sillohette, which is a list of edges.
The list of edges is constructed using the dotproduct of the vector to a vertex from the camera position, and the normal vector of the vertex. ( I think using the triangle normal should be enough )
If your model does not contain vertex normals then you will have to compute normal vectors.
I understand that toon shaders use a sillohette, which is a list of edges.
The list of edges is constructed using the dotproduct of the vector to a vertex from the camera position, and the normal vector of the vertex. ( I think using the triangle normal should be enough )
If your model does not contain vertex normals then you will have to compute normal vectors.
Thx for replying,I made it through with the method u just mentioned after I have been frustrated by the author's method.
But I still want to know that what's the definition of the rest semantic from NORMAL1 to NORMAL15, are they predefined by shader or defined by 3D modeling software,I used 3DSMAX,but I didn't find a way that can let me build two normals or more to a vetex.
But I still want to know that what's the definition of the rest semantic from NORMAL1 to NORMAL15, are they predefined by shader or defined by 3D modeling software,I used 3DSMAX,but I didn't find a way that can let me build two normals or more to a vetex.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement