View Full Version : Finding diffuse material in dx9 shader?
Gibbz 11-10-2005, 09:38 AM is it possible to find the diffuse channel in a dx9 shader.
Also how do i detect/use the 'DirectX_9_Shader' constructor?
Thanks
|
|
Gibbz
11-15-2005, 11:11 AM
bump*
Basically im using a rendermap for standard materials, but it doesnt work with dx9 shaders, i need to find a way to access the material so i can create a randermap.
Cheers
FaceMn
11-15-2005, 02:30 PM
There isn't really a concept of a 'diffuse channel' in shaders. There are what's called texture samplers. An easy way to find bitmaps in a DX9 shader in Max is to do something like this:
mat = $.material
for p in (getPropNames mat.delegate) do (prop = getProperty mat.delegate p
if classof prop == Bitmap do (-- Do something here
)
)
Gibbz
11-15-2005, 09:46 PM
ok cool, ill check this out :)
CGTalk Moderation
11-15-2005, 09:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.