Audio bus implemented and test pawn intro sound clips added. PawnBodies hooked up to PawnBaseData but not yet implemented.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user