Audio bus implemented and test pawn intro sound clips added. PawnBodies hooked up to PawnBaseData but not yet implemented.

This commit is contained in:
2026-03-07 03:33:59 -05:00
parent 52fe2f58d4
commit 984567cf96
28 changed files with 296 additions and 43 deletions

View File

@@ -38,16 +38,18 @@ void fragment() {
ALPHA = max(.05, intersect * intersection_color.a * strength);
float angle = atan(v_normal.z, v_normal.x);
float dot_step = (2.0f * PI) / dots_per_radian;
float dot_step = PI / dots_per_radian;
angle = round(angle / dot_step + 0.5f);
if(mod(angle,2.0) == 0.0){
ALPHA = 0.0;
}
if(ALPHA == .05){
ALBEDO = intersection_color.rgb;
ALPHA = 0.01;
}else{
ALBEDO = intersection_color.rgb * strength;
EMISSION = intersection_color.rgb * intensity * strength; // Glow effect
if(mod(angle,2.0) == 0.0){
ALPHA = 0.0;
}
}
}