Thursday, January 7, 2021

Shaders(1)

 For rendering 2d, the pixel shader re-assigns color

This code asks to use he effect, in the draw function, and the object

is drowned in the effect color.





This code does not. In effect, calling the shader with no parameter disables it.



Thus, it is suggested to close shader use, and return the draw function to normal.


Both of these get white:




Hence, blue becomes possible:





*     *     *



And not:




No comments: