#Sun Reflection Shader Effect

9 messages · Page 1 of 1 (latest)

hasty lynx
#

kinda all you really need is a MeshStandardMaterial with roughness set to 0.0

#

it'll reflect all strong light sources like that

#

yes, but you do not need any custom code

#

you can apply your 2D image as a roughness map

#

make the image black where there's water, and white where there's land

#

then apply that texture to MeshStandardMaterial as .roughnessMap

#

(if you want it to be flat, you can just apply the material to PlaneGeometry)

hasty lynx
#

nope, you can scroll the textures using .offset property, but in this case it wouldn't be much help

#

then you'd need to write a custom shader for the roughnessMap, that applies offset only to the shiny regions