Skip to main content
gamedev.net
๐Ÿ”’ Locked

Cubemap texture coordinates

Started by e-u-l-o-g-y Aug 23, 2005 at 9:01 AM 0 replies 550+ views
Original Post
e-u-l-o-g-y
e-u-l-o-g-y
Hi! I was wondering how the D3DVERTEXELEMENT9 structure members should be initialized to specify that you're using cubemap texture coordinates in the fixed function pipeline? I've tested some different types, but can't seem to get anyone to work

static D3DVERTEXELEMENT9 vertexElements[] =
{
   { 0, 0, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0 },
   { 0, 12, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_TEXCOORD, 0 },
   D3DDECL_END()
};


[Edited by - e-u-l-o-g-y on August 23, 2005 11:12:45 AM]
my-eulogy - A blog about coding and gfxsdgi - Semi-Daily Game IdeaChunkyHacker - Viewer for Relic chunky formats (used in DOW)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.