HLSL Semantics

Started by
0 comments, last by deathkrush 15 years, 5 months ago
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);?
--------------------------------------Not All Martyrs See Divinity, But At Least You Tried
Advertisement
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.
deathkrushPS3/Xbox360 Graphics Programmer, Mass Media.Completed Projects: Stuntman Ignition (PS3), Saints Row 2 (PS3), Darksiders(PS3, 360)

This topic is closed to new replies.

Advertisement