KITASENJU DESIGN BLOG

memo, html, javascript, unity

shader

highlight on shader

自作でhighlightをつけたいと思い勉強 wgld.org | WebGL: 反射光によるライティング | 抜粋 void main(void){ //光源ベクトル vec3 invLight = normalize(invMatrix * vec4(lightDirection, 0.0)).xyz; //視点ベクトル vec3 invEye = normalize(invMatrix * …

CustomRenderTextureと波動方程式を勉強

使い方 【Unity】【シェーダ】Custom Render Textureを使ってみる - LIGHT11 CustomRenderTextureを使って波紋エフェクトを作る - e.blog GitHub - edom18/CustomRenderTextureSample custom render texture使い方

ComputeScreenPosで忘れること

ComputeScreenPosを使い、ごにょごにょする際 入出力の構造体にscreenPosという名前を使ってしまうことがあるが この名前は別の値が代入されちゃうので気を付ける 2時間解けた。気を付けろ!

compute shaderまわりでArgumentException: ComputeBuffer.SetData()エラー

unityのバージョンを変えたらcompute shaderまわりでエラーがでた。ArgumentException: ComputeBuffer.SetData() computeBuffer.SetData(indices, 0, 0, computeBuffer.count); tmls.hatenablog.com

Spriteにマスク画像をつける

gist.github.com

おすすめシェーダー100

すごい数! 【Unity】無料のオススメシェーダまとめ(110個) - コガネブログ

背面シェーダー分岐

VFACEというのを使う Unity - Manual: Shader semantics https://forum.unity.com/threads/using-vface-in-surface-shader.460941/ Shader "Unlit/Face Orientation" { Properties { _ColorFront ("Front Color", Color) = (1,0.7,0.7,1) _ColorBack ("Back …

AR オクルージョン用のシェーダー

Add shadows to the Mesh generated by ARMeshManager. Reference 【Unity】【シェーダ】スクリーンに対してテクスチャをマッピングする方法を完全解説する - LIGHT11 シェーダー入門したくないけど書いてみたい その6 ライティング編 - 波打際のブログさん …

"FOOTER"