Introduction to shader notes 12 implementation of various simple lighting models

1, Ambient light and self illumination Control ambient light: Window->Lighting->Ambient Source/Ambient Color/Ambient Intensity In the Shader, you can get the ambient light information through unity? Lightmode? Ambient. Self luminous: Most objects do not have self illumination characteristics, and ...

Posted on Thu, 13 Feb 2020 00:22:11 -0800 by madkris

Binary search based on interval

Home in 2019 before the new year Problem scenario: The format of the interval is as follows. It is a Json string as a whole. The startTime and endTime of each interval are arranged in the order of small to large. "[{\"endTime\":1578633955,\"startTime\":1578626876},{\"endTime\":1578640268,\"startTi ...

Posted on Mon, 20 Jan 2020 03:22:29 -0800 by centerwork

Simple asynchronous scene loading (including loading progress and synchronous loading method) of Unity tool class LoadSceneManager implementation

  Catalog Simple asynchronous scene loading (including loading progress and synchronous loading method) of Unity tool class LoadSceneManager implementation I. brief introduction II. Implementation principle 3, Precautions 4, Effect preview 5, Implementation steps 6, Key code 7, Reference E ...

Posted on Sun, 12 Jan 2020 05:44:26 -0800 by mispris006

Hot update architecture based on MVC framework implemented by XLua

1. Import XLua's package into the project 2-1. Write the main entry script GameMgr to start Lua program `public class GameMgr : MonoBehaviour { private void Awake() { gameObject.AddComponent<LuaMgr>(); } private void Start() { LuaMgr.Instance.DoString("require 'Script/Xlua/XLuaFrame/Common/Main'"); } }` 2 - ...

Posted on Fri, 20 Dec 2019 13:15:14 -0800 by alexinjamestown

Unity - IK test

Code using UnityEngine; public class MyIK : MonoBehaviour { public Transform headObj = null; public Transform bodyObj = null; public Transform leftFootObj = null; public Transform rightFootObj = null; public Transform leftHandObj = null; public Transform rightHandObj = null; public Transfo ...

Posted on Tue, 05 Nov 2019 08:59:34 -0800 by phpdev12

Using unity shaderlab to realize the flash card effect in the poem of shadow

Introduction Hello, I'm a grade 9 chrysalis. I've been blogging since today. Although I always wanted to write a technology blog before, I think my previous learning experience may not help you, and many online materials are very detailed. Now I decided to wr ...

Posted on Sun, 27 Oct 2019 20:09:36 -0700 by johnie

Beauty of Backpack System

Links to the original text: https://github.com/dougen/Unity-Backpack     using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; /// <summary> /// Mouse dragging knapsack /// </summary> public class Drag ...

Posted on Sun, 06 Oct 2019 23:16:03 -0700 by chrishide87

Unity's Beauty in Resource Management Using Asset Database Editor

Links to the original text: https://gameinstitute.qq.com/community/detail/127380 Unity's resource management model is divided into two types: 1. Manage in the editor, load and unload resources using asset database 2. Runtime management ...

Posted on Fri, 04 Oct 2019 12:08:42 -0700 by double-f

[2] Try to make a King's Glory with Unity3d (Continuous Update) ->Choose a Hero-

If you have read this chapter: Directory Portal: This is a catalog duck~ 1. Scene building: First let's go to AssetStore and browse Taobao~~ What I found was this resource, other good-looking scenarios (not very expensive). Then when we imported this resource, we changed the name of the resource root folder to Select, the name of the Demo ...

Posted on Sat, 14 Sep 2019 23:40:23 -0700 by Arl8

3D Game-Foundation of Discrete Simulation Engine

3D Game-Foundation of Discrete Simulation Engine GitHub blog address Short Answer Questions Explain the differences and connections between Game Objects and Assets. GameObject: The game object is a component that can accommodate the actual func ...

Posted on Tue, 10 Sep 2019 20:44:49 -0700 by PHPFEEDER