83 DWORD vertex_shader_declaration[]=
86 (D3DVSD_REG(0, D3DVSDT_FLOAT3)),
87 (D3DVSD_REG(1, D3DVSDT_FLOAT3)),
88 (D3DVSD_REG(2, D3DVSDT_D3DCOLOR)),
89 (D3DVSD_REG(3, D3DVSDT_FLOAT2)),
96 vertex_shader_declaration
184 unsigned vertex_count
189 for (
unsigned i=0; i<vertex_count; ++i)
228 verts[i].
u1=vss.
UV[0][i].
U;
229 verts[i].
v1=vss.
UV[0][i].
V;
static void Set_Vertex_Shader_Constant(int reg, const void *data, int count)
static void Set_Texture(unsigned stage, TextureBaseClass *texture)
static void Set_DX8_Texture_Stage_State(unsigned stage, D3DTEXTURESTAGESTATETYPE state, unsigned value)
static void Set_Vertex_Shader(DWORD vertex_shader)
static void Get_Transform(D3DTRANSFORMSTATETYPE transform, Matrix4x4 &m)
static void Set_DX8_Render_State(D3DRENDERSTATETYPE state, unsigned value)
WWINLINE friend Matrix4x4 Multiply(const Matrix4x4 &a, const Matrix4x4 &b)
virtual unsigned Get_Vertex_Stream_Count() const
virtual void Copy_Vertex_Stream(unsigned stream, void *dest_buffer, const VertexStreamStruct &vss, unsigned vertex_count)
Shd6BumpDiffClass(const ShdDefClass *def)
virtual unsigned Get_Vertex_Size(unsigned stream) const
static Matrix4x4 View_Projection_Matrix
virtual void Apply_Instance(int cur_pass, RenderInfoClass &rinfo)
Apply per instance states for 1 pass DX6 specular with gloss map (no bump)
static ShdHWVertexShader Vertex_Shader
virtual void Apply_Shared(int cur_pass, RenderInfoClass &rinfo)
virtual ~Shd6BumpDiffClass()
static void Light(RenderInfoClass &rinfo, Vector4 &ambient, Vector4 &diffuse, Vector4 &specular)
Apply generic lighting.
ShdInterfaceClass(const ShdDefClass *def, int class_id)
Constructor.
const ShdDefClass * Definition
virtual TextureClass * Get_Texture(const char *filename, MipCountType mip_level_count=MIP_LEVELS_ALL, WW3DFormat texture_format=WW3D_FORMAT_UNKNOWN, bool allow_compression=true, TextureBaseClass::TexAssetType type=TextureBaseClass::TEX_REGULAR, bool allow_reduction=true)
static WW3DAssetManager * Get_Instance(void)
#define REF_PTR_RELEASE(x)
DWORD shd6bumpdiff_vsh_code[]
#define CV_WORLD_VIEW_PROJECTION
@ SHDDEF_CLASSID_BUMPDIFF
const Vector2 * UV[MAX_TEXTURE_STAGES]
const unsigned * DiffuseInt
const Vector3 * Locations