Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fyge_for_tb
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
fyge_for_tb
Commits
b068d4b0
Commit
b068d4b0
authored
Aug 03, 2022
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加shader编译错误打印shader代码
parent
19c8ad9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
getCusShader.ts
src/3d/shaders/getCusShader.ts
+4
-4
No files found.
src/3d/shaders/getCusShader.ts
View file @
b068d4b0
...
...
@@ -638,15 +638,15 @@ const FRAG = [
" #ifdef USE_MAP"
,
" vec4 mapColor = texture2D( uMap, vTextureCoord );"
,
" color *= mapColor;"
,
" vec2 s = step(vec2(uFrameUvs.x,
uFrameUvs.y),vTextureCoord) - step(vec2(uFrameUvs.z,uFrameUvs.w),
vTextureCoord);"
,
" vec2 s = step(vec2(uFrameUvs.x,
uFrameUvs.y),vTextureCoord) - step(vec2(uFrameUvs.z, uFrameUvs.w),
vTextureCoord);"
,
// " vec2 s = step(vec2(0.6669921875,0.4111328125),vTextureCoord) - step(vec2(0.951171875,0.65625),vTextureCoord);",
" color *= abs(s.x * s.y);"
,
" #endif"
,
" vec3 normal = vNormal;"
,
"
#ifdef USE_NORMAL_MAP"
,
"
normal = getNormalFromMap();"
,
"
#endif"
,
" #ifdef USE_NORMAL_MAP"
,
" normal = getNormalFromMap();"
,
" #endif"
,
//计算顶点颜色
" #ifdef USE_VERTEXCOLOR"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment