mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2024-09-27 21:22:35 +02:00
Fix safari (webgl1) compatibility problem
This commit is contained in:
parent
3a7b8aef59
commit
0727559aa1
@ -27,6 +27,10 @@ import { ShaderChunk } from 'three';
|
|||||||
export const HIRES_FRAGMENT_SHADER = `
|
export const HIRES_FRAGMENT_SHADER = `
|
||||||
${ShaderChunk.logdepthbuf_pars_fragment}
|
${ShaderChunk.logdepthbuf_pars_fragment}
|
||||||
|
|
||||||
|
#ifndef texture
|
||||||
|
#define texture texture2D
|
||||||
|
#endif
|
||||||
|
|
||||||
uniform sampler2D textureImage;
|
uniform sampler2D textureImage;
|
||||||
uniform float sunlightStrength;
|
uniform float sunlightStrength;
|
||||||
uniform float ambientLight;
|
uniform float ambientLight;
|
||||||
|
@ -27,6 +27,10 @@ import { ShaderChunk } from 'three';
|
|||||||
export const LOWRES_FRAGMENT_SHADER = `
|
export const LOWRES_FRAGMENT_SHADER = `
|
||||||
${ShaderChunk.logdepthbuf_pars_fragment}
|
${ShaderChunk.logdepthbuf_pars_fragment}
|
||||||
|
|
||||||
|
#ifndef texture
|
||||||
|
#define texture texture2D
|
||||||
|
#endif
|
||||||
|
|
||||||
struct TileMap {
|
struct TileMap {
|
||||||
sampler2D map;
|
sampler2D map;
|
||||||
float size;
|
float size;
|
||||||
|
Loading…
Reference in New Issue
Block a user