What is the easiest way to have a transparent material that can receive shadow ?

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
2ant
Gnoblar
Posts: 13
Joined: Wed Jan 25, 2023 2:20 pm

What is the easiest way to have a transparent material that can receive shadow ?

Post by 2ant »

Hi, i'm playing with the Python AR example and i would like to have a transparent plane that can receive shadow like in the opencv implementation of Ogre.

https://www.ogre3d.org/2020/12/24/augme ... and-opencv

I lack the c++ knowledge to understand the source : https://github.com/opencv/opencv_contri ... c/ovis.cpp

The doc :

https://ogrecave.github.io/ogre/api/13/ ... c2e9259815

say it's not possible so i'm kinda lost.

paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: What is the easiest way to have a transparent material that can receive shadow ?

Post by paroj »

Code: Select all

        pass
        {
            scene_blend modulate
        }

should be sufficient to achieve the effect

Post Reply