Three.js/GLSL - Convert Pixel Coordinate to World Coordinate

前端 未结 1 1035
Happy的楠姐
Happy的楠姐 2021-01-19 22:01

I have a simple shader in my Three.js application that colors the screen red. However, I want to color all pixels to the right of a given world position to to a different co

1条回答
  •  醉梦人生
    2021-01-19 22:23

    Answer derived from WestLangley's Fiddle here: http://jsfiddle.net/ST4aM/2/.


    Vertex Shader

    
    

    Fragment Shader

    
    

    0 讨论(0)
提交回复
热议问题