kbale / osgocean

An ocean rendering nodekit for OpenSceneGraph
GNU Lesser General Public License v3.0
108 stars 56 forks source link

going underwater triggers shader issues #53

Closed fcami closed 2 years ago

fcami commented 6 years ago

When first going or moving underwater I get:

" FRAGMENT glCompileShader "gaussian1_fragment_shader" FAILED FRAGMENT Shader "gaussian1_fragment_shader" infolog: 0:11(21): error: no matching function for call to `texture2DRect(sampler2DRect, vec4)'; candidates are: 0:11(21): error: vec4 texture2DRect(sampler2DRect, vec2) 0:11(15): error: operands to arithmetic operators must be numeric 0:14(21): error: could not implicitly convert operands to arithmetic operator 0:17(21): error: could not implicitly convert operands to arithmetic operator

glLinkProgram 0x7fd820bc7ae0"gaussian1" FAILED Program "gaussian1" infolog: error: linking with uncompiled shader FRAGMENT glCompileShader "gaussian2_fragment_shader" FAILED FRAGMENT Shader "gaussian2_fragment_shader" infolog: 0:11(21): error: no matching function for call to `texture2DRect(sampler2DRect, vec4)'; candidates are: 0:11(21): error: vec4 texture2DRect(sampler2DRect, vec2) 0:11(15): error: operands to arithmetic operators must be numeric 0:14(21): error: could not implicitly convert operands to arithmetic operator 0:17(21): error: could not implicitly convert operands to arithmetic operator

glLinkProgram 0x7fd820e881c0"gaussian2" FAILED Program "gaussian2" infolog: error: linking with uncompiled shader FRAGMENT glCompileShader "dof_combiner_fragment_shader" FAILED FRAGMENT Shader "dof_combiner_fragment_shader" infolog: 0:41(15): error: no matching function for call to texture2DRect(sampler2DRect, vec4)'; candidates are: 0:41(15): error: vec4 texture2DRect(sampler2DRect, vec2) 0:43(22): error: no matching function for call totexture2DRect(sampler2DRect, vec4)'; candidates are: 0:43(22): error: vec4 texture2DRect(sampler2DRect, vec2) 0:43(22): error: type mismatch 0:46(25): warning: centerDepth' used uninitialized 0:75(36): warning:centerDepth' used uninitialized

glLinkProgram 0x7fd820e77d60"dof_combiner" FAILED Program "dof_combiner" infolog: error: linking with uncompiled shader "

This is with mesa-libGL-17.2.4 on an Intel GPU:

OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile OpenGL core profile version string: 4.2 (Core Profile) Mesa 17.2.4 OpenGL core profile shading language version string: 4.20