본문으로 바로가기

illustration of life

현재위치 :: HOME BLOG CATEGORY SEARCH ARCHIVE TAGS MEDIA LOCATION GUESTBOOK

네비게이션

  • 홈
  • profile
  • write
  • facebook
  • Youtube
  • 태그
  • 방명록
  • Admin
관리자
  • 블로그 이미지
    illu_yun

    Technical Artist / All rights reserved by illu since 2001 / illustor@gmail.com

    링크추가
  • 글쓰기
  • 환경설정
  • 로그인
  • 로그아웃

Mapping between HLSL and GLSL

Mapping between HLSL and GLSL 원문링크 : https://anteru.net/blog/2016/mapping-between-HLSL-and-GLSL/ Mapping between HLSL and GLSL anteru.net HLSL과 GLSL의 차이만을 다루고 있다. 왼쪽이 HLSL 오른쪽이 GLSL System values & built-in inputs Direct3D는 몇 가지 시스템 값을 지정하고 GLSL에는 내장 변수 개념이 있다. 매핑은 아래와 같다 HLSL GLSL SV_ClipDistance gl_ClipDistance SV_CullDistance gl_CullDistance if ARB_cull_distance is present SV_Coverage gl_Samp..

Technical Report/Graphics Tech Reports 2022. 2. 7. 01:42

LWRP Basic shader code

only draw opaque render pass LWRP / Shader Graph PDF 190996 Shader "LWSampleShader" { Properties { [Space(20)] [Header(LWRP Demo)] _TintColor ("Color", color) = (1,1,1,1) _MainTex("Texture", 2D) = "white" {} [KeywordEnum(LC, LW1, LW2)] _Sample("Sampler mode", Float) = 0 _Offset("Tiling and Offset", vector) = (1, 1, 0, 0) [Space(10)] [Header(Lighting Mode)] [KeywordEnum(None, Lambert, BlinnPhong)..

Technical Report/Unity 2019. 9. 8. 05:48

Custom Material GUI

Editor Label Unity GUILayout classUnity EditorStyles class CatLike coding 샘플 코드 using UnityEngine;using UnityEditor;// https://catlikecoding.com/unity/tutorials/rendering/part-9/public class CustomShaderGUI : ShaderGUI{ Material target; MaterialEditor editor; MaterialProperty[] properties; public override void OnGUI(MaterialEditor editor, MaterialProperty[] properties) { th..

Technical Report/Unity 2019. 8. 14. 18:01

Unity PBR Default

Shader "UTK/StandardSample" { Properties { _TintColor("TintColor", Color) = (1,1,1,1) _MainTex("Albedo(RGB)", 2D) = "white" {} [Normal][NoScaleOffset]_BumpMap("Normal Texture", 2D) = "Bump" {} _NormalInten("Noraml Intensity", Range(0,2)) = 0 _Metallic("Metallic", Range(0,1)) = 0 _Smoothness("Smoothness", Range(0,1)) = 0.5 _Occlusion("Occlusion", 2D) = "white" {} _OcInten("Occlusion Intensity", R..

Technical Report/Unity 2019. 7. 10. 15:43

UV offset RGB divided Lightmap chromatic aberration fragment shader

UV offset RGB 분할을 이용한 Unity lightmap 색수차표현 // Upgrade NOTE: commented out 'float4 unity_LightmapST', a built-in variable // Upgrade NOTE: commented out 'sampler2D unity_Lightmap', a built-in variable // Upgrade NOTE: replaced tex2D unity_Lightmap with UNITY_SAMPLE_TEX2D Shader "Test/FragmentLightmap" { Properties { _MainTex ("Texture", 2D) = "white" {} _Tile01("Lightmap R(U) Tiling", Range(-0.01..

Technical Report/Unity 2019. 2. 15. 10:55

Fragment Lambert Lit

Lambert Lighting을 fragment에 적용해서 비교해 본다.(surface 하면서 간단한건 슬슬 tutorial에 넣어야 할듯해서...) 원문은 여기 참조 : https://docs.unity3d.com/Manual/SL-VertexFragmentShaderExamples.html 기본 구조에 대한 설명은 : https://illu.tistory.com/1197 우선 Surface code Shader "Test/SurfaceLambert" { Properties { _MainTex("Texture", 2D) = "white" {} } SubShader { Tags { "RenderType" = "Opaque" } CGPROGRAM #pragma surface surf SimpleLamber..

Technical Report/Unity 2019. 2. 9. 14:50

Material Property Drawer Example

// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' Shader "Test/Material Property Drawer Example" { Properties { [Header(Material Property Drawer Example)] [Space(20)] _TintColor("TintColor", Color) = (1,1,1,1) _MainTex ("Texture", 2D) = "white" {} [NoScaleOffset]_SecondTex ("Additional Texture", 2D) = "white" {} [Space(30)] //Toggle shader feature. it can use onl..

Technical Report/Unity 2019. 2. 7. 14:09

Unity Standard Shader Smoothness/Roughness

첨부한 Shader는 Unity 2017.3 이상 버젼에서만 작동합니다. Resource는 Perfect Knight를 제작한 김형일님이 협조해 주셨습니다.https://assetstore.unity.com/packages/3d/characters/humanoids/perfect-knight-4889 Unity Standard Shader Sample version 압축된 파일을 풀면 4개의 파일이 나옵니다. UnityKorea/StandardSmoothenssUnityKorea/StandardSmoothenssAlphaTestUnityKorea/StandardRoughnessUnityKorea/StandardRoughnessAlphaTest Shader파일은 Unity Project 폴더 아무곳에나 넣..

Technical Report/Tutorials 2018. 1. 23. 21:09

Unity fragment shader 구조 분석 정리

Unity fragment shader는 Surface shader와 달리 vertex shader와 pixel shader로 나누어 작성을 해야 한다. 기본구조는 크게 다르지 않으나 차이점이 있다면 surface 구조는 전처리 되어있는걸 사용하지 않는다고 막는구조라면 fragment 구조는 하나하나 만들어 줘야 한다는 정도.(fragment shader역시 전처리가 많이 되어있다. 다만 버텍스/픽셀 셰이더 구분이 되어있고 HLSL이나 GLSL과 구조가 유사하다는 정도일 뿐) 예제는 다음 링크에서 확인할 수 있다 : https://docs.unity3d.com/Manual/SL-VertexFragmentShaderExamples.html Shader "Test/FragmentBase" { P..

Technical Report/Unity 2017. 9. 26. 10:46
  • 이전
  • 1
  • 다음

사이드바

NOTICE

  • Profile
  • 전체 보기
MORE+

CATEGORY

  • Life (1034)
    • Works (102)
      • 2D (32)
      • 3D (28)
      • Design (10)
      • official works 3D (32)
    • Scenes of Road (163)
      • Scene of Road (39)
      • Cats... and... (24)
      • Travel and People (41)
      • music and lylic (32)
      • about... something (27)
    • Sketch (134)
      • Dessin (19)
      • 2D Sketch (82)
      • 3D Sketch (14)
      • Travel and Sketch (19)
    • Technical Report (252)
      • Tutorials (36)
      • Unity (108)
      • Unreal (19)
      • Graphics Tech Reports (66)
      • Other things (12)
      • R&D test (10)
      • Global Reporting (1)
    • Diary (382)
      • 2020-2025 (21)
      • 2015-2019 (102)
      • 2014 (47)
      • 2013 (49)
      • 2012 (47)
      • 2011 (53)
      • 2010 (42)
      • 2008-2009 (21)

RECENTLY

  • 최근 글
  • 최근 댓글

최근 글

최근댓글

LINK

  • 대마왕님네
  • 오즈라엘
  • 대혁님네
  • woojin
  • 도훈형
  • 이장희(서울스케치)
  • 어떤 개발자의 금서목록
  • 흑기사의 방랑일지(shader)
  • Spikezang(Worldbuilder)
  • Chi Keen Hui
  • dandoombuggyart
  • Technical Effect
  • canny708
  • walll

VISITOR

오늘
어제
전체
  • 홈으로
  • 방명록
  • 로그인
  • 로그아웃
  • 맨위로
SKIN BY COPYCATZ COPYRIGHT illustration of life, ALL RIGHT RESERVED.
illustration of life
블로그 이미지 illu_yun 님의 블로그
MENU
  • 홈
  • profile
  • write
  • facebook
  • Youtube
  • 태그
  • 방명록
  • Admin
CATEGORY
  • Life (1034)
    • Works (102)
      • 2D (32)
      • 3D (28)
      • Design (10)
      • official works 3D (32)
    • Scenes of Road (163)
      • Scene of Road (39)
      • Cats... and... (24)
      • Travel and People (41)
      • music and lylic (32)
      • about... something (27)
    • Sketch (134)
      • Dessin (19)
      • 2D Sketch (82)
      • 3D Sketch (14)
      • Travel and Sketch (19)
    • Technical Report (252)
      • Tutorials (36)
      • Unity (108)
      • Unreal (19)
      • Graphics Tech Reports (66)
      • Other things (12)
      • R&D test (10)
      • Global Reporting (1)
    • Diary (382)
      • 2020-2025 (21)
      • 2015-2019 (102)
      • 2014 (47)
      • 2013 (49)
      • 2012 (47)
      • 2011 (53)
      • 2010 (42)
      • 2008-2009 (21)
VISITOR 오늘 / 전체
  • 글쓰기
  • 환경설정
  • 로그인
  • 로그아웃
  • 취소

검색

티스토리툴바