KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2021-10-19 to 1 day

3d texture + slit-scan

slitscan with 3d texture using System.Collections; using System.Collections.Generic; using UnityEngine; public class slitscan3d : MonoBehaviour { public RenderTexture _rt3d; public Material _mat; private WebCamTexture _tex; private int _in…

zoom uv on shader

原点に移動してスケールして、また戻す float s = 1 - 0.95 * (0.5 + 0.5 * sin( _Time.y*0.5 )); float2 center = float2(0.5,0.5); i.uv = (i.uv - center) * s + center; fixed4 col = tex2D(_MainTex, i.uv );

"FOOTER"