private static int CreateCompiledSubShader(ShaderType shaderType, string subShaderCode) { uint shaderHandle = GLCore.CreateShader(shaderType); GLHelper.ShaderSource(shaderHandle, subShaderCode.Replace("precision mediump float;", "")); GLCore.CompileShader(shaderHandle); return((int)shaderHandle); }
private static int CreateCompiledSubShader(ShaderType shaderType, string subShaderCode) { uint shaderHandle = GLCore.CreateShader(shaderType); GLHelper.ShaderSource(shaderHandle, subShaderCode); GLCore.CompileShader(shaderHandle); return((int)shaderHandle); }