All Projects → madumpa → Urp_stylizedlitshader

madumpa / Urp_stylizedlitshader

Madumpa's URP Stylized Lit Shader Repository

Projects that are alternatives of or similar to Urp stylizedlitshader

Pbr proj
Shader of PBR for Unity
Stars: ✭ 68 (-57.5%)
Mutual labels:  unity, shader, pbr
Lwrpshaders
A collection of high customizable unlit shaders for Lightweight Render Pipeline
Stars: ✭ 125 (-21.87%)
Mutual labels:  unity, shader
Unityurptoonlitshaderexample
A very simple toon lit shader example, for you to learn writing custom lit shader in Unity URP
Stars: ✭ 2,988 (+1767.5%)
Mutual labels:  unity, shader
Unityurp Billboardlensflareshader
(1)Add a new Quad GameObject (2)Use this shader (3)Done! Now you have billboard lens flare shader for URP!
Stars: ✭ 140 (-12.5%)
Mutual labels:  unity, shader
2d Unity Experiments
A collection of visual Unity experiments with latest packages (URP, Shader Graph, Cinemachine, etc).
Stars: ✭ 107 (-33.12%)
Mutual labels:  unity, shader
Unlitclouds
A unity cloud shader, using vertex colors and tessellation for a simple stylized look.
Stars: ✭ 110 (-31.25%)
Mutual labels:  unity, shader
Kinostreak
Anamorphic lens flare effect for Unity
Stars: ✭ 139 (-13.12%)
Mutual labels:  unity, shader
Adamplanereflection
Planar reflection effect from the Adam Interior Environment package.
Stars: ✭ 86 (-46.25%)
Mutual labels:  unity, shader
Kinotube
An image effect simulating analog video artifacts in Unity.
Stars: ✭ 142 (-11.25%)
Mutual labels:  unity, shader
Lowpolyshaders
Unity shaders optimized for Low Poly models.
Stars: ✭ 157 (-1.87%)
Mutual labels:  unity, shader
Noiseball3
A Unity example that shows how to use the new implementation of DrawProcedural.
Stars: ✭ 147 (-8.12%)
Mutual labels:  unity, shader
Unitylibrary
📚 Library of all kind of scripts, snippets & shaders for Unity
Stars: ✭ 1,968 (+1130%)
Mutual labels:  unity, shader
Gpu Planetary Rendering
GPU atmosphertic scattering and planet generation in Unity 3D
Stars: ✭ 92 (-42.5%)
Mutual labels:  unity, shader
Proccharvfx
Procedural character generation with Unity Shader Graph and VFX Graph
Stars: ✭ 114 (-28.75%)
Mutual labels:  unity, shader
Spriteglow
A sprite glow effect for Unity game engine
Stars: ✭ 1,287 (+704.38%)
Mutual labels:  unity, shader
Unity Raymarching Framework
A framework to easy implement raymarching in unity. Include lots of hash,noise,fbm,SDF,rotate functions
Stars: ✭ 129 (-19.37%)
Mutual labels:  unity, shader
Unity Texture Curve
✏️ Example showing how to bake an AnimatedCurve into a Texture and use it in a shader.
Stars: ✭ 149 (-6.87%)
Mutual labels:  unity, shader
Ushadertemplate
Unity editor extension to generate shaders from template files.
Stars: ✭ 78 (-51.25%)
Mutual labels:  unity, shader
Temporalreprojectionexample
Temporal reprojection example for Unity
Stars: ✭ 82 (-48.75%)
Mutual labels:  unity, shader
Unityraytracinggem
💎 Ray tracing gem shader for Unity
Stars: ✭ 140 (-12.5%)
Mutual labels:  unity, shader

URP_StylizedLitShader

URP Stylized Lit Shader Repository

이 저장소는 2020.1.13f1으로 작업되었습니다.

URP 패키지는 7.4 버전 이상을 사용해 주세요

안녕하세요 프리랜서 테크니컬 아티스트 마둠파입니다.

image

Stylied Lit 셰이더는 URP Lit 셰이더를 기반으로 하여 제작되었습니다

Lit 셰이더에서 할 수 없었던 레디언스 제어, 스펙큘러 제어, 프레넬 제어 등을 할 수 있고,

브러시 텍스처를 통하여 다양한 스타일라이즈한 느낌을 추가할 수 있습니다

즉, PBR의 속성을 전부 사용하면서도 조금 더 만화같은 표현을 하기에 적합한 셰이더라고 할 수 있겠습니다

image

레디언스 제어가 가능하기 때문에 이처럼 NPR 느낌도 잘 소화합니다

image

프로젝트 첫 화면은 위와 같습니다

image

인스펙터 화면입니다.

Lit 셰이더와 비슷하지만 Advance 항목을 클릭하면 Stylized Lit 셰이더만의 옵션이 추가로 보이게 됩니다

image

Stylized Diffuse 에서는 3가지의 컬러와 Threshold, Smooth를 이용하여 표면의 라이팅을 리매핑하게 됩니다

위 이미지에서 알 수 있듯이 Lambert LightModel을 이용하여 프로시졀하게 Ramp Texture를 만드는 방식이라고 생각하시면 될듯합니다

image

Stylized Reflection에서는 Specular와 Fresnel을 추가로 제어할 수 있고, Metal의 큐브맵 밝기와 NonMetal의 큐브맵 밝기를 따로 제어할 수 있습니다

image

Stylized Lit 셰이더의 가장 큰 특징중에 또 한가지는 브러시 텍스처를 사용할 수 있다는 것입니다

image

브러시 텍스처는 위처럼 제작하면 되고, 각각 R채널은 Med Tone, G채널은 Shadow, B채널은 Reflect 에 대응합니다

샘플링을 아끼기 위해 타일링은 공통으로 쓸 수밖에 없으니 텍스처를 만들때 계획적으로 만들어 사용해 주세요

image

브러시텍스처 적용 사례에 대해서 간단하게 정리해보았습니다

이 셰이더의 사용은 자유롭습니다

상용프로젝트에서 사용하신다면 메일이라도 하나 남겨주시면 감사드리겠습니다 (별을 찍어주셔도 좋습니다)

메일주소는 [email protected] 입니다

감사합니다


Version 1.1

image

1.1버전에서는 실시간그림자를 Shadow Color 계산에 포함하는 것으로 수정하였습니다

실시간 그림자와 암부 계산을 한번에 하여 Shadow Smooth로 실시간 그림자 경계까지 한번에 컨트롤 하는것이 가능해졌습니다

또한 GI(Indirect Diffuse)의 밝기를 컨트롤 할 수 있는 GI Intensity 기능이 추가 되었습니다


추가 -

패키지 매니저를 통한 다운로드 방법 (컴퓨터에 Git이 설치되어 있어야 합니다)

  1. URP 세팅이 된 프로젝트를 열어주세요. 없는 경우 빈 URP 템플릿의 프로젝트를 생성해도 됩니다.

  2. 유니티 에디터 상단 메뉴아이템에서 패키지 매니저를 열어주세요. Window - Package Manager

  3. + 버튼을 눌러 Add package from git URL... 을 선택해주세요.

https://github.com/madumpa/URP_StylizedLitShader.git#packageManagerWork

을 붙여넣습니다.

Image

  1. 설치가 완료되면 Samples 탭을 열어 Demo Assets를 Import 합니다.

Image

  1. 프로젝트 뷰에 생긴 데모 에셋 폴더의 데모 씬을 엽니다.

Image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].