Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qt3dstudio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
public-demos
qt3dstudio
Commits
8bdb8524
Commit
8bdb8524
authored
Apr 20, 2018
by
Janne Koskinen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mapcoloreffect shader
some glsl compilers don't implicitly convert from int to float
parent
893442db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
clusterTemplate/effects/MapColorEffect.effect
clusterTemplate/effects/MapColorEffect.effect
+2
-2
No files found.
clusterTemplate/effects/MapColorEffect.effect
View file @
8bdb8524
...
...
@@ -30,10 +30,10 @@ void frag()
vec4 outcolor = vec4(0.0,0.0,0.0,1.0);
if(origColor.r >
0.1){
outcolor = descolor * vec4(road_color,1.0)*4;
outcolor = descolor * vec4(road_color,1.0)*4
.0
;
}
else if(origColor.b > 0.1){
outcolor = descolor * vec4(water_color,1.0)*8;
outcolor = descolor * vec4(water_color,1.0)*8
.0
;
}
else{
outcolor = vec4(land_color,1.0);
...
...
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