Sign in to follow this  
godsenddeath

HLSL Semantics

Recommended Posts

I've been working on HLSL lately, and i've come across semantics such as VIEW, LIGHT0, etc..., and i'm wondering how these map to the application? does LIGHT0 map to the light set with device->SetLight()?, and likewise, does VIEW/VIEWMATRIX map directly to a matrix set by device->SetTransform(D3DTS_VIEW,&mat);?

Share this post


Link to post
Share on other sites
I believe semantics like VIEW and LIGHT0 are used in shader authoring tools like FX Composer and RenderMonkey. In Direct3D SetLight and SetTransform are only for the fixed function pipeline and cannot be used with shaders.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this