PDA

View Full Version : Lod Bias on textures


KnickKnack
January 24th, 2008, 10:36
Hello,

Is there any way I can access the LOD bias of a texture in Mental Mill? For example, I want a texture to drive the mip-map bias of another texture but I don't seem to have access to the mipmap LODs. The texture_2D_lookup nodes don't have any mention of tex2Dlod function?

cheers

ruediger
January 24th, 2008, 14:30
There _is_ a way. Take the shader which is attached to this post and copy it to your mental mill shader directory <mill_install_dir>/data/shaders

In mental mill, create a new palette in your toolbox (e.g. "additional_shaders") and add your shader:
Right-click in your newly created palette and select Add shader(s)...
Browse to your shader dir, select the .msl file and load it. You'll see that it will be added to your palette.


That's it, now you can connect any scalar input to 'scale_blurriness' like you can see in the screenshots attached.

Best Regards,
Ruediger

KnickKnack
January 28th, 2008, 08:24
Thanks for the reply, I'll give it a go!