mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 07:43:49 +01:00
Merge branch 'main' into data-driven
This commit is contained in:
34 files changed
+986
-992
No files matched your search
@@ -4,7 +4,8 @@ varying vec3 vNormal;
|
||||
varying vec3 vViewPosition;
|
||||
|
||||
uniform float opacity;
|
||||
uniform float thickness;
|
||||
uniform float thicknessCoefficient;
|
||||
varying float vThickness;
|
||||
uniform float penetration;
|
||||
uniform float caliber;
|
||||
uniform float ricochet;
|
||||
@@ -43,6 +44,8 @@ vec3 getPenetrationColor(bool isThreeCalibersRule, bool couldHaveRicochet) {
|
||||
void main() {
|
||||
#include <clipping_planes_fragment>
|
||||
|
||||
float thickness = vThickness * thicknessCoefficient;
|
||||
|
||||
vec2 screenCoord = gl_FragCoord.xy / resolution;
|
||||
vec4 spacedArmorData = texture2D(spacedArmorBuffer, screenCoord);
|
||||
bool isUnderSpacedArmor = spacedArmorData.a != 0.0;
|
||||
|
||||
Reference in new issue
Block a user