02-28-2013, 05:29 AM
I have added YafaRay Stencil support. See the image below. This requires 3 modulators. All three Mix mode.
The first modulator is a texture set to Alpha Off.
The second modulator is a black and white texture set to Stencil.
The third modulator is a texture set to Alpha Transparency and Normal set to a value greater than 0.0. (YafaRay requires that this be a bump_shader and setting the normal to any number greater than 0.0 (i.e. 0.001) will set the modulator to a bump_shader).
The first modulator can be a bump_shader or diffuse_shader. The third modulator has to be a bump_shader.
Next, I plan to add an option for Oren-Nayar to the Shiny Diffuse material.
I know I have said it before but this time I will start cleaning up internal and exported code after that. Displacement maps, which I would like to add are not pure YafaRay if i understand correctly. Darktide Sunsky does not interest me. I may add it at some time in the future if there is any demand for it.
oort
The first modulator is a texture set to Alpha Off.
The second modulator is a black and white texture set to Stencil.
The third modulator is a texture set to Alpha Transparency and Normal set to a value greater than 0.0. (YafaRay requires that this be a bump_shader and setting the normal to any number greater than 0.0 (i.e. 0.001) will set the modulator to a bump_shader).
The first modulator can be a bump_shader or diffuse_shader. The third modulator has to be a bump_shader.
Next, I plan to add an option for Oren-Nayar to the Shiny Diffuse material.
I know I have said it before but this time I will start cleaning up internal and exported code after that. Displacement maps, which I would like to add are not pure YafaRay if i understand correctly. Darktide Sunsky does not interest me. I may add it at some time in the future if there is any demand for it.
oort