mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2024-11-16 15:15:10 +01: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 = `
|
||||
${ShaderChunk.logdepthbuf_pars_fragment}
|
||||
|
||||
#ifndef texture
|
||||
#define texture texture2D
|
||||
#endif
|
||||
|
||||
uniform sampler2D textureImage;
|
||||
uniform float sunlightStrength;
|
||||
uniform float ambientLight;
|
||||
|
@ -27,6 +27,10 @@ import { ShaderChunk } from 'three';
|
||||
export const LOWRES_FRAGMENT_SHADER = `
|
||||
${ShaderChunk.logdepthbuf_pars_fragment}
|
||||
|
||||
#ifndef texture
|
||||
#define texture texture2D
|
||||
#endif
|
||||
|
||||
struct TileMap {
|
||||
sampler2D map;
|
||||
float size;
|
||||
|
Loading…
Reference in New Issue
Block a user