3 thoughts on “Mise à jour des tutoriaux pour la 3.1 (suite)”

  1. Salut Valentin.

    Voila travaillant actuellement beaucoup sur les shaders, je pêne un peu a passer une certaine quantité des variables (avec semantique) du vertex au pixel shader. existe donc t-il des semantiques autre que les TEXCOORDX pour pouvoir effectuer ce genre de tache?

    Voila merci :)

  2. Oui, les voici listés :

    NOM, type, Description

    WORLD, WORLDMATRIX, MWORLD, MATWORLD matrix4x4 World matrix
    VIEW, VIEWMATRIX matrix4x4 View matrix
    PROJ, PROJECTION, PROJECTIONMATRIX, PROJMATRIX matrix4x4 Projection matrix
    WORLDVIEW, WORLDVIEWMATRIX, WV, WVIEWMATRIX matrix4x4 World-view matrix
    WORLDVIEWPROJ, WVP, WORLDVIEWPROJECTION, WORLDVIEWPROJECTIONMATRIX matrix4x4 World-view-projection matrix
    VIEWPROJ, VIEWPROJECTION, VIEWPROJMATRIX, VIEWPROJECTIONMATRIX matrix4x4 View-projection matrix
    VIEWI, VIEWINVERSE, VIEWINVERSEMATRIX, VI matrix4x4 Inverse view matrix
    WORLDIT, WORLDINVERSETRANSPOSE, WORLDTRANSPOSEINVERSE, WIT matrix4x4 Transposed, inverse world matrix
    VIEWIT, VIEWINVERSETRANSPOSE, VIEWTRANSPOSEINVERSE, VIT matrix4x4 Transposed, inverse view matrix
    CAMERAPOS, CAMERAPOSITION, VIEWPOS, VIEWPOSITION float3 Camera position
    TIME, TIMECOUNT, TICKCOUNT, SECONDS float Simulation time
    LIGHTDIRx_DIRECTION float3 Directional light ‘x’ direction
    LIGHTPOINTx_POSITION float3 Point light ‘x’ position
    LIGHTDIRx_COLOR float4 Directional light ‘x’ diffuse color
    LIGHTPOINTx_COLOR float4 Point light ‘x’ diffuse color
    LIGHTPOINT_NUM int Active point light count
    AMBIENT float4 Material ambient color
    DIFFUSE float4 Material diffuse color
    EMISSIVE float4 Material emissive color
    SPECULAR float4 Material specular color
    SPECULARPOWER float Material specular power
    TEXTUREx texture Texture stage ‘x’
    FOGSTART float Fog (linear) start
    FOGEND float Fog (linear) end
    FOGDENSITY float Fog (exp/exp²) density
    FOGCOLOR float3 Fog color
    FOGTYPE, FOG_TYPE int Fog type

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>