Message 1 of 2
HLSLMaterialHandle.SetTextureParameter() dont work ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Why don't this code work, all i get is black material on a simple plane, i have spent 2 days trying to solve this.
Project I am using is "howto\Graphics\HLSLShaderMaterials"
Just trying to simply set a texture in the shader.
HLSLMaterialHandle handle = GetHLSLMaterialHandle(featureLevel);
TextureHandleUtility::CreateTextureHandle(Texmap*, TimeValue);
handle.SetTextureParameter (_M("texture_name_in_fx_file"), hTexture);
"Texmap*" is valid, the material handle is valid and i can set 'float' values.
No errors when the shader compiles.
Ive tested the shader.fx in a 'DirectX Shader' material, it works and renders textures correctly.