# Community Tutorial: HLSL三角形代码转换为UE4材质节点教程

**URL:** <https://forums.unrealengine.com/t/community-tutorial-hlsl-ue4/2874929>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-engine\
**Created:** [November 30, 2026, 5:26am UTC](https://forums.unrealengine.com/t/community-tutorial-hlsl-ue4/2874929 "2026-11-30T05:26:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epic\_AutoTranslator](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/epic_autotranslator/32/1198372_2.png) [@Epic\_AutoTranslator](https://forums.unrealengine.com/u/Epic_AutoTranslator)\
**Post date:** [November 30, 2026, 5:26am UTC](https://forums.unrealengine.com/t/community-tutorial-hlsl-ue4/2874929/1 "2026-11-30T05:26:32Z")

</div>

在本教程中，我们将选取一段用于旋转三角形的Shadertoy GLSL代码片段，并在虚幻引擎中逐步将其转换为HLSL。然后，我们会拆解其中的数学原理，并完全使用虚幻引擎材质节点重建整个效果！最后，我们将随机化旋转、添加动画，并创建多彩发光的变体。  
  
[https://dev.epicgames.com/community/learning/tutorials/7xWBd/unreal-engine-hlsl-ue4](https://dev.epicgames.com/community/learning/tutorials/7xWBd/unreal-engine-hlsl-ue4)
