Meditation for dummies vs. Intel graphics

Started by Stefan, December 08, 2015, 06:10:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Found another shader not working properly with Intel graphics.

Original Shadertoy code

Ported to GeeXLab

I'm using now the new scene scripts.
Also i found a lazy method to avoid editing the original Shadertoy code at all, just replace the commented line.

EDIT: main function optimized

uniform vec3      iResolution;     
uniform float     iGlobalTime;     
uniform vec4      iMouse;         
// et cetera

/* replace this line with original code */

void main(){vec4 color = vec4(0.,0.,0.,1.);mainImage(color,gl_FragCoord.xy);gl_FragColor = color;} 



Found no fix for the demo yet, but i shortened the main function.

Also i added GPU vendor dependent messages as described in How to Check the Availability of an OpenGL Extension

<script name="update_scene" run_mode="FRAME" >   

    local ret = gh_renderer.check_opengl_extension("GL_INTEL_performance_query")
    if (ret == 1) then
    gfx.write_text(10, 160, 1, 0, 0, 1, "Intel render issue")
    local ret = gh_renderer.check_opengl_extension("GL_NVX_gpu_memory_info")
    if (ret == 1) then
    gfx.write_text(10, 160, 0, 1, 0, 1, "NVIDIA works fine")
    local ret = gh_renderer.check_opengl_extension("GL_AMD_debug_output")
    if (ret == 1) then
    gfx.write_text(10, 160, 0, 1, 0, 1, "AMD works fine")