The visual effect of grease splashing on the player's face
顔面にグリスが掛かった際のエフェクトの作例
The examples shown here are personal reproductions of the contents of work projects.
掲載している作例は実務で制作した内容を自主制作で再現したものです。
Tools/Environment: Unity, C#, Shaderlab (Cg), Built-in Render Pipeline
Platform: PC (Windows), SteamVR, HTC Vive
Working Period: 2 weeks
The grease splashes are rendered on a quad mesh based on a heightmap,
which is composed in real-time using a compute shader and some splash pattern textures.
Once the shader receives the height map for a specific frame,
it calculates normal to distort a grabtexture, parallax occlusion to represent the volume of grease.
グリスの飛沫は、Heightmapに基づいて標準のQuadの上に描画されます。
Heightmapは、Compute Shaderといくつかの飛沫のパターンのテクスチャを使ってリアルタイムで合成されます。
シェーダが特定のフレームのHeightmapを受け取ると、GrabTextureを歪ませるための法線、グリスの体積を表現するためのParallax Occlusionが計算されます。
シェーダが特定のフレームのHeightmapを受け取ると、GrabTextureを歪ませるための法線、グリスの体積を表現するためのParallax Occlusionが計算されます。

