当前位置:网站首页>Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources
Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources
2022-07-04 08:29:00 【Yugong move code】
Preface
In the use of Unity When developing games , Setting the sky box is definitely essential . If you use 3D modeling , It will be troublesome to build a sky box and put it in the scene .Unity The function of simply setting skybox is provided in . As long as there is skybox resource file ( Skybox resource files are actually six seamlessly connected pictures , And a shader , Shaders Unity It's already built in .
One 、 Make and set skybox resources
1. Download resources
Download and import hdr High dynamic range image resources to Project In the view
2. Create materials
Project Create a new one in the view Material
modify Material Of Shader by SkyBox>CudeMap/6Sided,CubeMap Type of Shader The map needs to be assigned a TextureShape by Cube The content of .
3.Material Assignment map
The shader in the sky box resource is set to cube , Click application
4. Render the scene
menu bar Window>Rendering>Lighting Setting Set up SkyBox Material
Selection environment -》 Material settings sky box scene
5. Rendering Components
Select... In the menu bar above ”Component“, Then move the mouse to ”Rendering“, One of the menus listed on the right is ”Skybox“. Click on ”Skybox“, It can be ”Skybox“ Component added to MainCamera above . It should be noted that , Before clicking, it must be in Hierarchy Select... In the view MainCamera, Otherwise you can't add . If you select another object , Will be added to other objects .
6. Rendering Components
There is also a way to set the sky box material 6sided
summary
The sky box is windows The platform works , But on other platforms , For example, on mobile devices , The shaders of sky box material they support may be different , So we need to prepare appropriate resources .
边栏推荐
- What determines vacuum permittivity and vacuum permeability? Why do these two physical quantities exist?
- Group programming ladder race - exercise set l1-006 continuity factor
- WordPress get_ Users() returns all users with comparison queries - PHP
- Newh3c - routing protocol (RIP, OSPF)
- Moher College phpmailer remote command execution vulnerability tracing
- 力扣今日题-1200. 最小绝对差
- How to use C language code to realize the addition and subtraction of complex numbers and output structure
- How to send pictures to the server in the form of file stream through the upload control of antd
- Mouse over to change the transparency of web page image
- What sparks can applet container technology collide with IOT
猜你喜欢
Azure ad domain service (II) configure azure file share disk sharing for machines in the domain service
小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
ES6 summary
MySQL relearn 1-centos install mysql5.7
墨者学院-phpMyAdmin后台文件包含分析溯源
Moher College webmin unauthenticated remote code execution
manjaro安装微信
AcWing 244. Enigmatic cow (tree array + binary search)
NewH3C——ACL
C, Numerical Recipes in C, solution of linear algebraic equations, Gauss Jordan elimination method, source code
随机推荐
ctfshow web255 web 256 web257
NPM run build error
Internal learning
SQL statement view SQL Server 2005 version number
Sqli labs download, installation and reset of SQL injection test tool one of the solutions to the database error (# 0{main}throw in d:\software\phpstudy_pro\www\sqli labs-...)
[untitled] 2022 polymerization process analysis and polymerization process simulation examination
ZABBIX 5.0 monitoring client
Convert datetime string to datetime - C in the original time zone
Basic operations of databases and tables ----- view data tables
The right way to capture assertion failures in NUnit - C #
Collections in Scala
Question 49: how to quickly determine the impact of IO latency on MySQL performance
Example analysis of C # read / write lock
If the array values match each other, shuffle again - PHP
2022 gas examination registration and free gas examination questions
Application of isnull in database query
AcWing 244. Enigmatic cow (tree array + binary search)
Devops Practice Guide - reading notes (long text alarm)
Leetcode 146. LRU 缓存
DM8 tablespace backup and recovery