L6 - Materials Flashcards

1
Q

materials used for?

A

color, shade, texture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

material represents

A

shader and its settings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

textures are…

A

images that get stretched around meshes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

textures affect

A

color, transparency, depth, shininess,….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

assign texture to material how?

A

drag into albedo slot of material object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

create shader how?

A

assets->rt-click->create->shader…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

shader code language?

A

hlsl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

relationships between shader, material, object

A

shader onto material, material onto object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

_Time.z is what?

A

built in shader value counting time since you pressed play

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Unity Standard shader

A

Unity’s Standard Shader attempts to light objects in a physically accurate way. This technique is called Physically-Based Rendering or PBR for short. Instead of defining how an object looks in one lighting environment, you specify the properties of the object, for example, how metal or plastic it is.

Then, the shader computes its shading based on those factors. In practice, this works incredibly well to produce realistic 3D objects across a variety of lighting conditions. The big problem is that it is often computationally expensive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

assign shader to material

A

select shader in inspector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

3 shader types we used, core tradeoff and spectrum positions.

A

quality performance

default (PBR) . mobile/diffuse mobile/unlit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

model comprised of

A

texture, material, meshes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In this lesson we learned…

A

What are materials?
Materials are what we use to color and shade our objects. They consist of a shader and its settings. Without them, we wouldn’t be able to see objects in our scene at all!

How can I create and assign materials to an object?
To create a material, go to the Project window and click Create > Material. There are a couple different ways you can assign a material to an object. Find the material in the Project window and click and drag the material onto an object in the Scene. Click on an object in the Hierarchy, so you can see the details in the inspector. Click and drag the material and drop it in the inspector.

What are textures and how can we assign them to an object.
Textures are images that get stretched around meshes. They can adjust color, transparency, depth, shininess, metalness, light emission, etc. To assign a texture to an object, find the object’s material in the Project window and click on it, so you can see its properties in the Inspector window. Search for your image in the Project window. Click and drag the image into the small box to the left of the “Albedo” setting in the object’s material.

What are shaders?
Shaders are written in High Level Shader Language (HLSL). Shaders are essentially the code behind how an object is rendered.
For mobile VR, we’ll want to use simple shaders because the Standard Unity shaders will be too computationally expensive. To change the shader type of a material, click on the material in the Project window. In the Inspector, toward the top, you’ll see a dropdown for Shader.

What are some simple shaders?
Mobile > Unlit (Supports Lightmap) - This super fast shader supports lightmaps, but doesn’t get any realtime lighting.
Mobile > Diffuse - This is a fast shader, that does get some lighting information. The main difference between this shader and the standard shader, is that this one is much faster.
What makes up a model?
Models are made up of materials, textures and meshes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly