Notifications
                
            
                Clear all
    
            
        [Closed] Finding diffuse material in dx9 shader?
Nov 10, 2005 10:38 am
                      is it possible to find the diffuse channel in a dx9 shader.
Also how do i detect/use the ‘[b][b]DirectX_9_Shader’ constructor?
Thanks
[/b][/b]
                             3 Replies                        
                    Nov 10, 2005 10:38 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
Nov 10, 2005 10:38 am
                      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 ([indent]-- Do something here
    )
  [/indent])