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:
https://www.icloud.com/iclouddrive/0-6xgSJJ0fzCeQzoJEkx53omQ#Ocean

How can i fix it?

Tagged:

Comments

  • SimeonSimeon Admin Mod
    Posts: 4,958

    @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 3 Posts: 386

    @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: 386
    material.time =ElapsedTime in update() works nicely.
  • JohnJohn Admin Mod
    Posts: 573

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

Sign In or Register to comment.