Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Multiplying two textures together

Discussion in 'Shaders' started by pbourke, Jun 7, 2008.

  1. pbourke

    pbourke

    Joined:
    Dec 27, 2007
    Posts:
    32
    I need a material that comprises of one texture multiplied by another. This needs to be done dynamically since the initial texture is a camera shot rendered to a texture, see description here
    http://local.wasp.uwa.edu.au/~pbourke/projection/UnityiDome/
    The second texture will be grey scale that both acts as a soft edge mask but also can adjust for brightness variation across the dome surface, see the first moonlight warped image here
    http://local.wasp.uwa.edu.au/~pbourke/projection/warppatch/
    ps: I have calibration software that creates the mask, just haven't been able to find out how to do the multiplication ... a simple gl_modulate style blend if I was using OpenGL.