You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Merge pull request #10343 from Faless/html5_fixes_2
Use precision for samples only when #version 300 es
This commit is contained in:
@@ -273,9 +273,11 @@ ShaderGLES3::Version *ShaderGLES3::get_current_version() {
|
||||
//vertex precision is high
|
||||
strings.push_back("precision highp float;\n");
|
||||
strings.push_back("precision highp int;\n");
|
||||
#ifndef GLES_OVER_GL
|
||||
strings.push_back("precision highp sampler2D;\n");
|
||||
strings.push_back("precision highp samplerCube;\n");
|
||||
strings.push_back("precision highp sampler2DArray;\n");
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
if (cc) {
|
||||
@@ -374,9 +376,11 @@ ShaderGLES3::Version *ShaderGLES3::get_current_version() {
|
||||
//fragment precision is medium
|
||||
strings.push_back("precision highp float;\n");
|
||||
strings.push_back("precision highp int;\n");
|
||||
#ifndef GLES_OVER_GL
|
||||
strings.push_back("precision highp sampler2D;\n");
|
||||
strings.push_back("precision highp samplerCube;\n");
|
||||
strings.push_back("precision highp sampler2DArray;\n");
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
if (cc) {
|
||||
|
||||
Reference in New Issue
Block a user