Skip to content

Commit

Permalink
Added PI and TAU to common compute shaders definitions (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Feb 2, 2025
1 parent 1d192f0 commit b45e0bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion addons/material_maker/engine/nodes/buffer_compute.tres
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_resource type="Resource" script_class="TextResource" load_steps=2 format=3 uid="uid://cefq10ldvkjse"]

[ext_resource type="Script" path="res://addons/material_maker/engine/text_resource.gd" id="1_iqmcs"]
[ext_resource type="Script" uid="uid://bc3eljtuurjsd" path="res://addons/material_maker/engine/text_resource.gd" id="1_iqmcs"]

[resource]
script = ExtResource("1_iqmcs")
Expand All @@ -14,6 +14,9 @@ layout(set = 3, binding = 0, std140) restrict buffer MM {
int mm_chunk_y;
};
const float PI = 3.14159265359;
const float TAU = 2.0*PI;
@COMMON_SHADER_FUNCTIONS
const float seed_variation = 0.0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_resource type="Resource" script_class="TextResource" load_steps=2 format=3 uid="uid://dftem3gvk6iaq"]

[ext_resource type="Script" path="res://addons/material_maker/engine/text_resource.gd" id="1_28bnl"]
[ext_resource type="Script" uid="uid://bc3eljtuurjsd" path="res://addons/material_maker/engine/text_resource.gd" id="1_28bnl"]

[resource]
script = ExtResource("1_28bnl")
Expand All @@ -14,6 +14,9 @@ layout(set = 3, binding = 0, std140) restrict buffer MM {
int mm_chunk_y;
};
const float PI = 3.14159265359;
const float TAU = 2.0*PI;
@COMMON_SHADER_FUNCTIONS
const float seed_variation = 0.0;
Expand Down

0 comments on commit b45e0bb

Please sign in to comment.