which Semantics?

Problems building or running the engine, queries about how to use features etc.
Meddten
Halfling
Posts: 71
Joined: Mon Aug 09, 2004 8:28 pm
Location: Austria

which Semantics?

Post by Meddten »

I´ve the following dx shader compiler output

Code: Select all

//
// Generated by Microsoft (R) D3DX9 Shader Compiler 5.04.00.2904
//
//   fxc /E view_space /T vs_3_0 /Fc avdm.vsh /nologo test.fx
//
//
// Parameters:
//
//   float3 lightpos;
//   float4x4 modelview;
//   float4x4 modelviewproj;
//   float4x4 view;
//
//
// Registers:
//
//   Name          Reg   Size
//   ------------- ----- ----
//   modelviewproj c0       4
//   view          c4       4
//   modelview     c8       3
//   lightpos      c11      1
//
//

// Default values:
//
//   lightpos
//     c11  = { -300, 300, -300, 0 };
//

    vs_3_0
    def c12, 1, 0, 0, 0
    dcl_position v0

etc.

i´ve the following semantics

for modelviewproj = WORLDVIEWPROJ_MATRIX
for lightpos = LIGHT_POSITION 0

what can i use for the other two, and is this above true?

I ask that because i got not the right output as i got in fx composer and i tryed differnt settings, no success?

Thanks in advance
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post by sinbad »

The bindings you're looking for are:

view = ACT_VIEW_MATRIX
modelview = ACT_WORLDVIEW_MATRIX