[過去ログ] 【ゲームエンジン】Unity初心者質問スレBuild1 (1002レス)
上下前次1-新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
616: 2018/10/02(火)16:59 ID:cJx4sVse(1/2) AAS
お世話になっております。
光源無視、アルファ設定、UVスクロール出来るシェーダーが作りたく下記のように設定しました。
色んなサイトのコピペですが。。。
これに Cull off を設定したいのですが、どのように記入すればよいでしょうか。
初心者ゆえ、お知恵をお貸しください。
Properties{
_MainTex("Flow Tex" , 2D) = "white" {}
_Flow("Flow Speed", Float) = 1
_Brightness("Brightness", Float) = 1 }
SubShader{
Tags{
"Queue" = "Transparent"
"RenderType" = "Transparent" }
CGPROGRAM
#pragma surface surf Standard alpha
sampler2D _MainTex;
half _Flow;
half _Brightness;
struct Input {
float2 uv_MainTex; };
void surf(Input IN, inout SurfaceOutputStandard o) {
fixed flowTex = tex2D(_MainTex, IN.uv_MainTex + half2(0, _Time.x * _Flow)).r;
o.Emission = flowTex * _Brightness;
o.Albedo = fixed3(0, 0, 0);
o.Alpha = 0;
o.Metallic = 0;
o.Smoothness = 0; }
ENDCG }
Fallback "Transparent/Diffuse"
上下前次1-新書関写板覧索設栞歴
あと 386 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.008s