Unreal Engine 5 plugin template for adding custom material expression nodes to the engine using MaterialExpression
.
-
Basic Shader Functionality:
- Creates a view-dependent color gradient on the surface.
- The color smoothly transitions between
InnerColor
andOuterColor
based on the viewing angle. - The
Exponent
parameter controls the sharpness or softness of the transition.
-
Plugin Module:
- Provides a template for creating and registering custom material nodes.
- Easily extendable for additional functionality.
- Clone this repository into your Unreal Engine project's
Plugins
folder. - Rebuild your project in Visual Studio or your preferred IDE.
- Enable the plugin in the Unreal Engine Editor under Edit > Plugins.
- Open the Material Editor in Unreal Engine.
- Search for the "Custom Material Node Template" in the palette.
- Connect the
InnerColor
,OuterColor
, andExponent
inputs to customize the gradient effect. - Apply the material to any mesh to see the view-dependent gradient in action.
Here's an example of how the node can be used in a material:
- InnerColor: Blue
- OuterColor: Red
- Exponent: 5.0
This creates a smooth transition from blue to red, with a sharper gradient at the edges.
If you have suggestions or improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues or have questions, please open an issue on this repository.