내용으로 건너뛰기
GINS WIKI 긴스 위키
사용자 도구
로그인
사이트 도구
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
현재 위치:
긴스위키 GINS wiki
»
개발 언어
»
unity
»
shader
»
Unlit - Texture Colored.shader
추적:
검색
language:unity:shader:레퍼런스
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== Unlit - Texture Colored.shader ====== <code shader> // Unlit color shader. Very simple textured and colored shader. // - no lighting // - no lightmap support // - per-material color // from : http://shattereddeveloper.blogspot.jp/2012/11/creating-colored-unlit-texture-shader.html // Change this string to move shader to new location Shader "Unlit/Texture Colored" { Properties { // Adds Color field we can modify _Color ("Main Color", Color) = (1, 1, 1, 1) _MainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } LOD 100 Pass { Lighting Off SetTexture [_MainTex] { // Sets our color as the 'constant' variable constantColor [_Color] // Multiplies color (in constant) with texture combine constant * texture } } } } </code>
language/unity/shader/레퍼런스.txt
· 마지막으로 수정됨: 2024/04/23 22:45 저자
127.0.0.1
문서 도구
문서 보기
이전 판
역링크
맨 위로