HCSL (Heliodor Custom Shader Language)
Overview
Heliodor now supports custom shaders. HCSL (Heliodor Custom Shader Language) is Heliodor's proprietary shader language.
Implementation
Shader Compilation
-
Right-click in the Project view and create a ShaderLab by selecting "Create → Shader → UnlitShader", then name it "sample"

-
Right-click the generated sample shader and create a material from the Material button. Name it "sample" as well

-
Add a Plane to the Unity scene as a child element of HCSL_Test and place it near WavePlane

-
Attach the sample material to the Plane. Also, remove the mesh collider as it is not needed
-
Duplicate WavePlane.hcsl with Ctrl + D and rename it to "sample"

-
Double-click sample.hcsl to open it in your preferred editor
Note
Open with Shift JIS encoding
-
Change the shader name in the hcsl file to "sample" and save

-
Add the HEOCustomShader component to the Plane via Add Component

-
Attach the sample material and sample.hcsl

-
Click the three-dot button on HEOCustomShader and find and press the Compile button

-
The HCSL will be converted to ShaderLab. If "Success!!" appears in the Unity console, it was successful

Using HCSL In-Game
-
Select HCSL_Test and export HEO via VketCloudSDK → Export Field

-
Export the HEO to "release/data/Field/HCSL_Test"

-
Copy the created sample.hcsl to "release/data/Shaders"

-
Open
release\data\Scene\streamingvideo.jsonin a text editor
-
Find the shaders field and add the path to the sample.hcsl you just added:
"Shaders/sample.hcsl"
-
Finally, set up a local server as you did in the preparation phase, enter the game, and verify that the created shader is reflected
