当前位置:网站首页>Unity3d learning notes (I)
Unity3d learning notes (I)
2022-07-29 09:00:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack , I wish every programmer can learn more languages .
operation : Press down shit Click on the center of the axis Switch perspective
The concept of animation baking : Equivalent to the original controller animation or IK( bones ) Animation all collapses into frame by frame animation , You must select this item when exporting
Shaders : From a technical point of view , The shader is Renderers Part of , It is responsible for calculating the color of the target
shader、texture As material Part of , Usually used together
shader:
diffuse Dispersion 、 Scatter the single channel color model
bumped diffuse Concave convex spread two channel model 、 Set more normal maps than above
bumped specular The effect of concave convex specular highlights ..
Normal map : Distinguished from 2d Plane mapping , Can be understood as special “ Bump map ”
Normal mapping can be applied to 3D Special texture of surface , Unlike previous textures, they can only be used 2D The surface of the . As an extension of bump texture , It contains the height value of each pixel , Surface information with many details , Can be on ordinary objects , Create many special three-dimensional shapes . You can imagine the normal map as a point perpendicular to the original surface , There is a different surface for all the points . For visual effects , Its efficiency is higher than the original surface , If a light source is applied at a particular position , It can generate accurate light direction and reflection
Dynamic loading Resources( The premise must be Assets There is Resources Folder ) :
private Texture2D imgTexture;
private Texture2D[] imgs;
void OnGUI()
{
if (GUI.Button(new Rect(10,50,50,50), "fuck One"))
{
Debug.Log("Clicked the button with an image");
//Resources.Load<Texture2D>("oneMateral");
imgTexture = Resources.Load<Texture2D>("oneMateral/Grass");
}
if(GUI.Button(new Rect(10,100,50,50), "fuck all"))
{
imgs = Resources.LoadAll<Texture2D>("allMateral");
} /// The reason why it is placed below is to ensure GUI Every frame goes on texture Repaint
if(imgTexture != null)
{
GUI.DrawTexture(new Rect(80,50,100,100),imgTexture,ScaleMode.StretchToFill);
}
if(imgs != null)
{
for(var i=0; i<imgs.Length; i++)
{
GUI.DrawTexture(new Rect(80+ i* 100 ,150,100,100),imgs[i],ScaleMode.StretchToFill,true,0);
}
}Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/118779.html Link to the original text :https://javaforall.cn
边栏推荐
- Osgsimplegl3 combined with renderdoc tool
- 2022年山东省安全员C证上岗证题库及答案
- Leetcode: interview question 08.14. Boolean operation
- Information system project manager must recite the quality grade of the core examination site (53)
- Group Backpack
- MFC integration QT verification and problem handling
- 优秀的Allegro Skill推荐
- On the charm of code language
- Count the list of third-party components of an open source project
- BI data analysis practitioners learn financial knowledge from scratch? What introductory books are recommended
猜你喜欢

Sword finger offer 27. image of binary tree

How does xjson implement four operations?

C language -- 23 two-dimensional array

BI data analysis practitioners learn financial knowledge from scratch? What introductory books are recommended

2022 electrician (elementary) test question simulation test platform operation

Basic shell operations (Part 1)

Mathematical modeling - Differential Equations

2022 question bank and answers of operation certificate examination for main principals of hazardous chemical business units

Regular expression verification version number

C language sorts n integers with pointers pointing to pointers
随机推荐
ML.NET相关资源整理
What should I pay attention to now? Excuse me, is it safe to open a stock account by mobile phone?
Leetcode deduction topic summary (topic No.: 53, 3, 141, interview question 022, the entry node of the link in the sword finger offer chain, 20, 19, Niuke NC1, 103, 1143, Niuke 127)
Cloud security daily 220712: the IBM integration bus integration solution has found a vulnerability in the execution of arbitrary code, which needs to be upgraded as soon as possible
What are the backup and recovery methods of gbase 8s database
Sword finger offer 50. the first character that appears only once
01-01-osg GL3 environment setup
Leetcode question brushing (6)
C language sorts n integers with pointers pointing to pointers
AI is at the forefront | focusing on natural language processing, machine learning and other fields; From Fudan University, Institute of automation, Chinese Academy of Sciences and other teams
MySQL 错误总结
Design of distributed (cluster) file system
File upload and expansion
Group Backpack
[[first blog]p controller implementation instructions in UDA course]
Requests library simple method usage notes
Error reporting when adding fields to sap se11 transparent table: structural changes at the field level (conversion table xxxxx)
Amazfit dial Kit
[LOJ 6485] LJJ binomial theorem (unit root inversion) (template)
(视频+图文)机器学习入门系列-第2章 线性回归