space-3d icon indicating copy to clipboard operation
space-3d copied to clipboard

OSX Glitch

Open mattdesl opened this issue 10 years ago • 3 comments

There is a glitch on one of the cube faces sometimes. It looks like it could be garbage pixels (maybe a FBO is not cleared before rendering) or some bug in the shader (maybe pow or something is being fed negative values, or maybe something needs to be clamped).

screen shot 2015-11-17 at 10 44 59 am

mattdesl avatar Nov 17 '15 15:11 mattdesl

Update: something to do with alpha and blending; giving the nebula output color an opacity of 1.0 fixes this.

mattdesl avatar Nov 17 '15 18:11 mattdesl

Ah, that's too bad; it makes me think it's not straightforward to address. Unfortunately it's difficult for me to debug this, not having access to an OSX device.

wwwtyro avatar Nov 17 '15 22:11 wwwtyro

This is caused by an uninitialized variable in nebula.glsl on line 40. Changing vec3 displace; to vec3 displace = vec3(0.0); fixes the problem.

albinodervall avatar May 01 '17 13:05 albinodervall