Skip to content

Commit

Permalink
Fix shader breaking (galacean#1463)
Browse files Browse the repository at this point in the history
* fix: shader breaking
  • Loading branch information
GuoLei1990 authored Apr 12, 2023
1 parent c0bd7b6 commit c0f997d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/shaderlib/RendererFragmentDeclaration.glsl

This file was deleted.

2 changes: 0 additions & 2 deletions packages/core/src/shaderlib/ShaderLib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import common_vert from "./common_vert.glsl";
import transform_declare from "./transform_declare.glsl";

import color_share from "./color_share.glsl";
import RendererFragmentDeclaration from "./RendererFragmentDeclaration.glsl";
import FogFragmentDeclaration from "./FogFragmentDeclaration.glsl";
import FogVertexDeclaration from "./FogVertexDeclaration.glsl";
import normal_share from "./normal_share.glsl";
Expand Down Expand Up @@ -65,7 +64,6 @@ export const ShaderLib = {
normal_share,
uv_share,
worldpos_share,
RendererFragmentDeclaration,
FogVertexDeclaration,
FogFragmentDeclaration,

Expand Down
1 change: 0 additions & 1 deletion packages/core/src/shaderlib/extra/blinn-phong.fs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <ShadowFragmentDeclaration>
#include <mobile_material_frag>

#include <RendererFragmentDeclaration>
#include <FogFragmentDeclaration>
#include <normal_get>

Expand Down
1 change: 0 additions & 1 deletion packages/core/src/shaderlib/extra/pbr.fs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <common>
#include <camera_declare>

#include <RendererFragmentDeclaration>
#include <FogFragmentDeclaration>

#include <uv_share>
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/shaderlib/light_frag_define.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ struct EnvMapLight {


uniform EnvMapLight u_envMapLight;
uniform ivec4 oasis_RendererLayer;

#ifdef O3_USE_SH
uniform vec3 u_env_sh[9];
Expand Down

0 comments on commit c0f997d

Please sign in to comment.