신규 트윈모션 에셋을 무료로 제공합니다

HLSL Material

4
별 5개 중 5개(평점 4개)
  • 100%
  • 0%
  • 0%
  • 0%
  • 0%

Write material functions directly in HLSL

  • 지원 플랫폼
  • 지원 엔진 버전
    4.26 - 4.27, 5.0
  • 다운로드 유형
    엔진 플러그인
    이 제품은 코드 플러그인과 함께 미리 빌드한 바이너리와 언리얼 엔진에 통합되는 모든 소스 코드를 포함하고 있으며 원하시는 엔진 버전에 설치하여 프로젝트에 따라 활성화할 수 있습니다.

Ever wanted to write complex material functions directly in HLSL? Now you can!


Demo: https://twitter.com/phyronnaz/status/1454988373467222024

Github: https://github.com/Phyronnaz/HLSLMaterial

Support: https://discord.gg/UjtexdkWxC


Features

  • HLSL support: write all your functions in a single hlsl file and use any of them in regular materials
  • Team-friendly: regular material functions are generated, so your team members don't need the plugin to use them!
  • Live updates: material functions & opened material editors are refreshed when saving the hlsl file (Windows only)
  • Comment support: comments are parsed & pin tooltips are set accordingly
  • Smart updates: only modified functions are updated
  • Texture parameters support
  • Bool parameters support
  • Define support
  • Includes support (with auto updates when included files are edited)
  • Default value support
  • Clickable errors: errors are properly displayed relative to your file(s), and clicking them will open your IDE



How to

  • Create a new HLSL Material Function Library (right click Content Browser -> Material & Textures). This asset will be the link between your hlsl file and all the generated material functions.
  • Set the File on it to point to your HLSL file
  • Add functions to the file
  • Material functions will be created when you save the HLSL file
  • You can also disable the automatic updates and manually right click the asset -> Update from HLSL



Syntax

  • All return types must be void to ensure the pins are all properly named
  • To mark a parameter as an output, use out: eg, out float3 MyOutput
  • Comments must use the // syntax, /* is not supported
  • @param in comments will be parsed & put into the pin tooltips


Examples

기술적 세부사항

Editor only plugin, can be used in a team without everyone having the plugin