Version: 2022.1
언어: 한국어
커서
Lightmap

Cookie

Cookie 텍스처 타입은 텍스처 에셋의 포맷을 지정하므로 빌트인 렌더 파이프라인에서 광원 쿠키로 사용하기에 적합합니다.이 텍스처 타입에 대해 Unity는 선택한 Light Type에 따라 Texture Shape을 자동으로 업데이트합니다.

  • Directional and Spotlight cookies use the 2D shape.
  • Point light cookies use the Cube shape.

프로퍼티

쿠키 텍스처 타입에 대한 프로퍼티
쿠키 텍스처 타입에 대한 프로퍼티
Property Description
Light Type Define the type of Light that the cookie is applied to.

Note that you must create your source texture with an appropriate layout: cookies for Point Lights must be laid out as cubemaps, and cookies for Directional Lights and Spot Lights must be laid out as regular 2D Textures.

If you apply a cookie to a Directional Light, you can use a cookie configured for a Directional Light, or a cookie configured for a Spot Light. A Directional Light using a cookie configured for a Directional Light repeats the cookie in a tiled pattern all over the scene. A Directional Light using a cookie configured for a Spot Light projects the cookie just once in the direct path of the “beam” of the light. This is the only case where the position of a Directional Light is important.
Spotlight With this type of Light, you want the edges of your Cookie Texture to be solid black to get the proper effect, so Unity sets the Wrap Mode to Clamp by default. See Wrap Mode.
Directional With this type of Light, this Texture tiles, so Unity sets the Wrap Mode to Repeat by default. See Wrap Mode.
Point When you choose this type of Light, you can also customize the Cube shape-specific.
Alpha Source Specifies how Unity generates the alpha value for the texture asset from the texture source file.
None The texture asset doesn’t have an alpha channel, whether or not the texture source file has one.
Input Texture Alpha Unity applies the alpha channel from the texture source file to the texture asset, if the texture source file has an alpha channel.
From Gray Scale Unity generates the alpha channel for the texture asset from the average values the texture source files RGB channels.
Alpha is Transparency Indicates whether to dilate the color channels. This helps to avoid filtering artifacts on the edges of the alpha channel if the alpha channel represents transparency.
Non Power of 2 Specifies how Unity scales the dimension size if the texture source file has a non-power of two (NPOT) dimension size. For more information on NPOT dimension sizes, see Importing Texture.
None Texture dimension size stays the same.
To nearest Scales the Texture to the nearest power-of-two dimension size at import time. For example, a 257x511 px Texture is scaled to 256x512 px. Note that PVRTC formats require Textures to be square (that is width equal to height), so the final dimension size is upscaled to 512x512 px.
To larger Scales the Texture to the power-of-two dimension size of the largest dimension size value at import time. For example, a 257x511 px Texture is scaled to 512x512 px.
To smaller Scales the Texture to the power-of-two dimension size of the smallest dimension size value at import time. For example, a 257x511 px Texture is scaled to 256x256 px.
Read/Write Indicates whether to access the texture data from scripts using Texture2D.SetPixels, Texture2D.GetPixels and other Texture2D methods. Internally, Unity uses a copy of the Texture data for script access, which doubles the amount of memory required for the Texture. This property is therefore disabled by default, and you should enable it only if you require script access. For more information, see Texture2D.
Generate Mipmaps Indicates whether to generate mipmaps for this texture.
Mipmap Filtering Specifies the method Unity uses to filter mipmaps and optimize image quality.

This property is only visible when you enable Generate Mipmaps.
Box Makes mip levels smoother as they decrease in dimension size.
Kaiser Runs a sharpening algorithm on mipmaps as they decrease in dimension size. Use this option if your textures are too blurry when far away.
The algorithm is of the Kaiser Window type. For more information, see Wikipedia.
Preserve Coverage Indicates whether the alpha channel in generated mipmaps preserves coverage during the alpha text. For more information, see TextureImporterSettings.mipMapsPreserveCoverage.

This property is only visible when you enable Generate Mipmaps.
Alpha Cutoff The reference value that controls the mipmap coverage during the alpha test.

This property is only visible when you enable Preserve Coverage.
Replicate Border Indicates whether to stop colors bleeding out to the edge of the lower MIP levels. This is useful for light cookies.

This property is only visible when you enable Generate Mipmaps.
Fadeout to Gray Indicates whether mipmaps should fade to gray as the mip levels progress. This is useful for detail maps. The left-most scroll is the first mip level to begin fading out. The right-most scroll defines the mip level where the texture is completely grayed out.

This property is only visible when you enable Generate Mipmaps.
Ignore PNG Gamma Indicates whether to ignore the gamma attribute in PNG files. This option is only visible if the texture source file is a PNG.
Swizzle Specifies how to order the texture source file color channel data.
Wrap Mode Specifies how the texture behaves when it tiles.
Repeat Repeats the texture in tiles.
Clamp Stretches the texture’s edges.
Mirror Mirrors the texture at every integer boundary to create a repeating pattern.
Mirror Once Mirrors the texture once, then clamps it to edge pixels.

Note: Some mobile devices don’t support Mirror Once. In this case, Unity uses Mirror instead.
Per-axis Provides options you can use to individually control how Unity wraps textures on the U and V axis.
Filter Mode Specifies how Unity filters the texture when the texture stretches during 3D transformations.
Point (no filter) The texture appears blocky up close.
Bilinear The texture appears blurry up close.
Trilinear Like Bilinear, but the texture also blurs between the different MIP levels.
Aniso Level Controls the texture quality when you view the texture at a steep angle. Anisotropic filtering is good for floor and ground Textures but is resource intensive. For more information, see Importing textures.

또한 플랫폼별 오버라이드 패널을 사용하여 특정 플랫폼에 대한 기본 옵션과 오버라이드를 설정할 수 있습니다.

커서
Lightmap