전체 글 159

srp 내장 Bloom 코드들.

void SetupBloom(CommandBuffer cmd, int source, Material uberMaterial) { // 2로 나눈다 int tw = m_Descriptor.width >> 1; int th = m_Descriptor.height >> 1; // 반복 횟수 정하기 int maxSize = Mathf.Max(tw, th); int iterations = Mathf.FloorToInt(Mathf.Log(maxSize, 2f) - 1); iterations -= m_Bloom.skipIterations.value; int mipCount = Mathf.Clamp(iterations, 1, k_MaxPyramidSize); // 사전 필터링 매개변수 float clamp = m_Bl..

UniversalRenderingExamples.2 3DCharacterUI

3DCharacterUI Blur 용 Forward Renderer Data 를 추가해서 상점 카메라에서 사용 Forward Renderer Data Shop Camera [System.Serializable] public class KawaseBlurSettings { public RenderPassEvent renderPassEvent = RenderPassEvent.AfterRenderingTransparents; public Material blurMaterial = null; [Range(2,15)] public int blurPasses = 1; [Range(1,4)] public int downsample = 1; public bool copyToFramebuffer; public strin..

아티스트를 위한 URP 셰이더 링크

https://chulin28ho.tistory.com/644 (셰이더 그래프/HLSL)아티스트를 위한 URP 셰이더 Shader #1 셰이더 처음 만들기 (노드버전) 그럼 맨 먼저 시작해 보죠. 이론 같은거야 좋은 책들이 많을테고, 여기 오시 분들은 그래요.. 서론 싫어하는거 다 안다고요... 하긴 저도 유투브에서 5분 설명할거 chulin28ho.tistory.com 기본 // This shader fills the mesh shape with a color predefined in the code. Shader "Example/URPUnlitShaderBasic" { // The properties block of the Unity shader. In this example this block is..

캐릭터 경사면에 서 있는상태 체크(미끄러질수있는 곳)

https://docs.unity3d.com/ScriptReference/RaycastHit-normal.html Unity - Scripting API: RaycastHit.normal Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. Close docs.unity3d.com Vector3 pos1 = transform.position; Vector3 dir = new Vectire(..

BrobroLevel.

사용된 클래스 LevelManager : 플레이어를 생성하고, 체크포인트를 처리하고, 다시 생성 CheckPoint : 캐릭터가 죽으면 부활하는 위치. 클래스. Ladder : 사다리. 캐릭터와 충돌하면 사다리의 Collider2d 값을 캐릭터에 넘겨 주더라. RandomSprite : 배경타일에 쓰는 클래스. 지정된 Sprite를 랜덤하게 출력. (유니티 타일 기능으로 대체가능) Health : 체력 클래스. Collider2d와 같이 사용됨. 데미지 피드백 설정가능. 데미지 맞을때 색상변경. 등등 많은 기능. FinishLevel : 이 클래스를 트리거에 추가하면 플레이어가 다음 레벨로 이동 MMFPSCounter : 프레임 출력 MMFadeEvent : FadeIn FadeOut 연출 몬스터 1개에..

Unity/코기엔진 2021.12.14