Project Files: https://simonschreibt.gumroad.com/l/fpkyz
WIP Thread: https://realtimevfx.com/t/simon-trumpler-vfx-sketchbook/4177/305
I gave a Tech Art Class for students of the SAE school (If you would like having me giving this class to your students/team, let's talk!) with the goal to create only ONE shader which can be reused for MANY different effects (fire, smoke, water, item flare, forcefield, projectile trail, ads). This should save the students a lot of time during production. The idea was to keep the shader relatively simple. The main ingredients are 2 gray scale textures (one gives structure, the other one serves as mask), 1 normal map (for distortion & refraction), 1 LUT for colorizine the gray scale values and features like controlling the UV distortion on X, Y and over time.
The course focuses mainly on the shader creation and covered the following topics (during SAE course I didn't had enough time to cover everything because we only had 3h):
- Shader Basics
- Math (multiply, fract, sin)
- Getting variation by using time, UVs, World Position and custom data like textures
- Linear/sRGB
- UV Tiling, Offset & Distortion (over time)
- Refraction
- LUTs
- Alpha Erosion via Smootstep
- Depth Fade
- Fesnel
3rd Party Meshes
https://www.turbosquid.com/3d-models/sacrifice-altar-model-1343537
https://www.turbosquid.com/3d-models/comercial-board-3ds-free/545538
https://www.turbosquid.com/3d-models/torii-gateway-obj-free/833275
https://www.turbosquid.com/3d-models/balta-3d-model-1308084
3rd Part Textures
https://luos.gumroad.com/l/bouSt
https://www.nielsdewitte.be/index.php?page=Pages%2FVFExtra.php
Examples for different effect materials which are all based on he same shader and use material instances to activate different options. More details in the project description.
Using distortion (with an intensity based on the particle lifetime) adds a nice extra motion to the static textures (no flip book).
Distorting the trail texture only along the vertical axis and over time (no distortion at tip, full at the end) adds a nice swirly motion. Note that the trail texure has enough blank space so that the texture can be distorted a lot.
LUTs are practical to colorize grayscale textures and can be offset over time to get nice "plasma" effects.