Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Shader from Shade to Codea

in Shaders Posts: 15

I made the Shader of the ocean and imported to Codea using the Files application. In the game itself, the colors are displayed correctly, but the shape changes only in 4 corners

link to the shader:

How can i fix it?



  • SimeonSimeon Admin Mod
    Posts: 5,705

    @Picalines this is because in Shade the default plane is subdivided (has more polygons and vertices to distort). The Codea quad you are using has only four vertices in the corners and so can't deform the same way. If you add more geometry to it, it should look better

  • edited May 2019 Posts: 645

    @simeon, @John, i tried to incorporate the shade dissolve shader example in my code. It displays but does not change with time? Do i have to explicitly feed it the elapsed time in someway?

  • Posts: 645
    material.time =ElapsedTime in update() works nicely.
  • JohnJohn Admin Mod
    Posts: 643

    @piinthesky Yes that's how you do it. I'll make time update automatically in a future update.

Sign In or Register to comment.