iOS/pc : doesn't render the same.

Share your Construct 2 effect files

Post » Mon Jan 04, 2016 8:19 pm

Hello,
I'm currently working on a shader and, while it's close to completion on PC, it's really nothing alike on my iOS 9 device. I believe the main cause of that "bug" is that I don't handle random in shaders correctly; I can remember an old post on that subject, but can't find it. Could anyone point it to me?
http://www.schizokoa.com we are a small game jam group, visit us!
B
25
S
6
G
1
Posts: 51
Reputation: 1,934

Post » Tue Jan 05, 2016 8:20 am

It's certainly caused by bad initialization of gl_FragColor for Mac. Instead of gl_FragColor=color ; you must initialize it correctly on IOS
like gl_FragColor=vec4(vec3(color),1.0);

Hope this can help ..
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
57
S
20
G
29
Posts: 804
Reputation: 21,969

Post » Wed Jan 06, 2016 8:44 am

I'll have a try at this, and report, thanks!
http://www.schizokoa.com we are a small game jam group, visit us!
B
25
S
6
G
1
Posts: 51
Reputation: 1,934


Return to Effects

Who is online

Users browsing this forum: Snowmany and 0 guests