当前位置:网站首页>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
边栏推荐
- 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)
- State compression DP
- Can the access database be accessed remotely
- Use disco diffusion to generate AI artwork in moment pool cloud
- [[first blog]p controller implementation instructions in UDA course]
- (Video + graphic) introduction to machine learning series - Chapter 3 logical regression
- BI data analysis practitioners learn financial knowledge from scratch? What introductory books are recommended
- 【Unity入门计划】常用学习网址收藏
- Clickhouse learning (III) table engine
- QT learning: use non TS files such as json/xml to realize multilingual internationalization
猜你喜欢
Leetcode question brushing (6)
C language calculates the length of string
Arfoundation Getting Started tutorial 7-url dynamically loading image tracking Library
2022 R2 mobile pressure vessel filling test question simulation test platform operation
Tesseract text recognition -- simple
SAP sm30 brings out description or custom logical relationship
2022年R2移动式压力容器充装考题模拟考试平台操作
(视频+图文)机器学习入门系列-第3章 逻辑回归
Requests library simple method usage notes
2022电工(初级)考题模拟考试平台操作
随机推荐
Amazfit dial Kit
Gutcloud technology restcloud completed the pre-A round of financing of tens of millions of yuan
Sword finger offer 26. substructure of tree
6.3 references
On the charm of code language
Restful style details
Basic shell operations (Part 1)
2022 electrician (elementary) test question simulation test platform operation
[[first blog]p controller implementation instructions in UDA course]
多重背包,朴素及其二进制优化
MySQL 错误总结
C language -- 22 one dimensional array
GBase 8s数据库有哪些备份恢复方式
2022 P cylinder filling test simulation 100 questions simulation test platform operation
信息系统项目管理师必背核心考点(五十三)质量等级
One click automated data analysis! Come and have a look at these treasure tool libraries
201803-3 CCF URL映射 满分题解
2022电工(初级)考题模拟考试平台操作
ML.NET相关资源整理
LeetCode刷题(6)