KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2021-10-10 to 1 day

screen pos and unlit

Shader "Unlit/ScreenPos" { Properties { _MainTex ("Texture", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } LOD 100 Pass { CGPROGRAM #pragma vertex vert #pragma fragment frag // make fog work #pragma multi_compile_fog #inclu…

RenderTexture + GetPixels

using UnityEngine; public class RenderTextureColorPicker : MonoBehaviour { [SerializeField] private RenderTexture _target; private Texture2D _texture; private void Awake(){ _texture = new Texture2D(_target.width, _target.height); } private…

"FOOTER"