Transparent shadows issue
Posted: Wed Sep 23, 2020 3:12 pm
I am trying to get transparent shadows for my trees, but the following, which I found in a post, does not seem to work:
shadows appear mesh-based and not diffuse-texure-alpha. (blocky)
I am using terra if that has to do with anything.
here's my material:
Thanks!
Code: Select all
Ogre::HlmsPbsDatablock* dataBlock = dynamic_cast<Ogre::HlmsPbsDatablock*>(Ogre::Root::getSingleton().getHlmsManager()->getHlms(Ogre::HLMS_PBS)->getDefaultDatablock());
dataBlock->setTransparency(0);
dataBlock->setAlphaTest(Ogre::CMPF_LESS_EQUAL);
dataBlock->setAlphaTestThreshold(0.5f);shadows appear mesh-based and not diffuse-texure-alpha. (blocky)
I am using terra if that has to do with anything.
here's my material:
Code: Select all
hlms tree1_lod_2 pbs
{
scene_blend alpha_blend
depth_write on
diffuse_map tree1_lod_2_diffuse.png
specular_map tree1_lod_2_diffuse.png
normal_map tree1_lod_2_normal.png
}