Skip to content

Commit

Permalink
Implement vertex shading for Vulkan
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmaa committed May 24, 2024
1 parent 640b980 commit 1eaf5f0
Show file tree
Hide file tree
Showing 4 changed files with 708 additions and 24 deletions.
4 changes: 0 additions & 4 deletions drivers/gles3/shaders/scene.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,6 @@ void main() {

#endif // ADDITIVE_SPOT

diffuse_light_interp.rgb *= albedo;
diffuse_light_interp.rgb *= 1.0 - metallic;
vec3 additive_light_color = diffuse_light_interp.rgb + specular_light_interp.rgb;

#endif // USE_ADDITIVE_LIGHTING
#endif //!MODE_RENDER_DEPTH
#endif // USE_VERTEX_LIGHTING
Expand Down
Loading

0 comments on commit 1eaf5f0

Please sign in to comment.