shader Tiles_2_by_4(
string Tile_1_1 = "",
string Tile_1_2 = "",
string Tile_1_3 = "",
string Tile_1_4 = "",
string Tile_2_1 = "",
string Tile_2_2 = "",
string Tile_2_3 = "",
string Tile_2_4 = "",
output color c = 0)
{
string f;
float modU = u * .25;
modU -= floor(modU);
float modV = v * .50;
modV -= floor(modV);
if (modU < .25)
{
if (modV < .50) { f = Tile_1_1; }
else { f = Tile_2_1; }
}
else if (modU < .50)
{
if (modV < .50) { f = Tile_1_2; }
else { f = Tile_2_2; }
}
else if (modU < .75)
{
if (modV < .50) { f = Tile_1_3; }
else { f = Tile_2_3; }
}
else
{
if (modV < .50) { f = Tile_1_4; }
else { f = Tile_2_4; }
}
c = texture(f, u - floor(u), v - floor(v), "wrap", "clamp");
}
coilbook wrote:can anyone make a sparkle shader like for snow? Or can otoy do it? I think it is a very necessary shader Thank you
paride4331 wrote:coilbook wrote:can anyone make a sparkle shader like for snow? Or can otoy do it? I think it is a very necessary shader Thank you
Hi coilbook,
could flake osl to help?
https://render.otoy.com/forum/viewtopic.php?f=27&t=66015
Regards
Paride
Return to Development Build Releases
Users browsing this forum: No registered users and 4 guests