Skip to content

Commit

Permalink
fix: outline shader
Browse files Browse the repository at this point in the history
  • Loading branch information
akorzunin committed Sep 13, 2024
1 parent 29c13f4 commit 482d0e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/models/icosahedron/shaders/outline_v1.gdshader
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ void vertex() {

void fragment() {
if (enable) {
ALBEDO = color.rgb;
ALPHA = 0.5;
//ALBEDO = color.rgb;
ALBEDO = vec3(0.);
ALPHA = 0.9;
} else {
ALPHA = 0.;
}
Expand Down
6 changes: 3 additions & 3 deletions src/models/icosahedron/test/variant_test.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var controlledNode

@onready var pattern_gen: PatternGen = $PatternGen

@export var ROTATION_SPEED: float = G.settings.ROTATION_SPEED
@export var ROTATION_SPEED: float = 12

@export_category("variant settings")
@export var show_face_numbers: bool = true
Expand All @@ -23,9 +23,9 @@ func get_next():
var next_type: int
match spawn_type:
0: next_type = pattern_gen.next_pattern()
1: next_type = randi_range(17, 19)
1: next_type = randi_range(0, 19)
2: next_type = variant_type
print_debug("Spawinig next figure woth type: ", next_type)
print_debug("Spawinig next figure with type: ", next_type)
spawn_next(next_type)

func remove_current():
Expand Down
2 changes: 1 addition & 1 deletion src/models/icosahedron/test/variant_test.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ shader_parameter/bg_color = Color(0.729, 0.902, 0.992, 1)

[node name="VariantTest" type="Node3D"]
script = ExtResource("1_4av47")
spawn_type = 2
spawn_type = 1

[node name="Environment" type="Node3D" parent="."]

Expand Down

0 comments on commit 482d0e3

Please sign in to comment.