RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
1.01k stars 182 forks source link

Question: Two layer material support? #465

Closed WhitePhoera closed 3 years ago

WhitePhoera commented 3 years ago

I need material to draw some decals and rust above usual model texture, i can dynamically change texture of cource, but i would like to avoid it. I read docs, but did not saw anything like that(may be missed it thou..).

from sources i saw Mix material, but for it to work it need to have map for factor, not fixed value as it now.

Anything to help me there? or at least some consideration for future?(for example i think it must not be hard to upgrade Mix to use map for factor)

johguenther commented 3 years ago

The Mix material already supports a texture for "factor" (named "map_factor").

WhitePhoera commented 3 years ago

i overlooked that. thanks for pointing that out.