Доработка пайплайн машины (требуется пересмотр технологии)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#version 460
|
||||
|
||||
// layout(early_fragment_tests) in;
|
||||
layout(early_fragment_tests) in;
|
||||
|
||||
layout(location = 0) in FragmentObj {
|
||||
vec3 GeoPos; // Реальная позиция в мире
|
||||
|
||||
Binary file not shown.
@@ -44,4 +44,7 @@ vec4 atlasColor(uint texId, vec2 uv)
|
||||
void main() {
|
||||
Frame = atlasColor(Fragment.Texture, Fragment.UV);
|
||||
Frame.xyz *= max(0.2f, dot(Fragment.Normal, normalize(vec3(0.5, 1, 0.8))));
|
||||
|
||||
if(Frame.w == 0)
|
||||
discard;
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user