Пример #1
0
        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);
        }
Пример #2
0
        private static int CreateCompiledSubShader(ShaderType shaderType, string subShaderCode)
        {
            uint shaderHandle = GLCore.CreateShader(shaderType);

            GLHelper.ShaderSource(shaderHandle, subShaderCode);
            GLCore.CompileShader(shaderHandle);
            return((int)shaderHandle);
        }