美文网首页
2023-06-03Unity纹理导入设置

2023-06-03Unity纹理导入设置

作者: kkjusdoit | 来源:发表于2023-06-02 18:55 被阅读0次

texture import settings

sRGB (Color Texture)

  • instructs the GPU to convert data from sRGB color (gamma) space to linear color space when it samples the texture in a shader
    • gamma space: 更接近人眼明暗感知, eg:伽马校正
    • linear space: 线性颜色空间,更精确

Alpha Source

  • Specify how the alpha channel of the Texture is generated
    • Input Texture Alpha: This uses the alpha from the input Texture if a Texture is provided.

Alpha is Transparency

  • Enable this property to dilate(膨胀) the color and avoid filtering artifacts on the edges if the alpha channel you specify is Transparency.
    • filtering artifacts: 过滤伪影是指在数字信号处理中,由于采样、量化等原因,信号中出现的不真实的频率成分,需要通过滤波器进行去除。

Non Power of 2(非2的幂)

  • defines a scaling behavior at import time
    • Ideally, Texture dimension sizes should be powers of two on each side (that is, 2, 4 ... 512, 1024 pixels (px), and so on)
    • Options:
      • To nearest: Scale the Texture to the nearest power-of-two dimension size at import time. For example, a 257x511 px Texture is scaled to 256x512 px.

Read/Write Enabled

  • 可读纹理,便于脚本Texture2D.SetPixels/GetPixels方法获取
    • doubles the amount of memory

Streaming Mip Maps

  • 指的是动态生成和加载mip贴图级别的技术
  • mipmaps:trades a small amount of CPU resources to save a potentially large amount of GPU memory
    • 是一组不同分辨率的纹理,包含从高到低一系列缩小版本的同一纹理。
    • 其目的是根据视角和表面细节自动选择合适分辨率的纹理加速渲染
    • mip是多级渐进纹理(multum in parvo)的缩写,意为“小空间内的许多信息”。

Generate Mip Maps

  • 生成mip贴图

ASTC 4x4

  • 纹理压缩格式:“自适应表面压缩纹理”(Adaptive Scalable Texture Compression)
  • ASTC 4x4指的是该格式使用4x4个像素为基本压缩单位,每个块包含16个像素。它提供RGB和RGBA两种纹理压缩格式,RGBA格式还具有alpha通道

相关文章

  • Ⅱ基础纹理

    基础纹理 单张纹理 关于纹理导入设置用途知识跳转至https://docs.unity.cn/cn/current...

  • OpenGL纹理常用API解析

    纹理对象 读取.TGA文件的纹理 设置纹理参数 设置环绕方式 设置过滤方式 载入纹理 环绕方式

  • 八、OpenGL - 纹理金字塔

    一 初始化数据 生成纹理对象 绑定纹理 读取纹理文件 设置纹理参数 载入纹理 创建金字塔并设置纹理顶点映射 二 渲...

  • 导入模型

    1.导入模型: 1.模型:.FBX(AssetStore(资源商店)) 纹理(材质):在导入纹理的过程中会自动生成...

  • 四、其他:一些基本概念04-纹理

    纹理是模型的一个重要内容,可以认为是模型的血液。 导入参数 Generate Mip Maps 当纹理缩小时,纹理...

  • OpenGL纹理常用API

    读取纹理 载⼊入纹理 其他纹理操作 纹理对象 设置纹理参数 关于贴图方式(GL_TEXTURE_WRAP_S、GL...

  • Unity性能优化整理

    纹理优化 Sprite Packer 通过细分导入到Unity的纹理,利用自带的Sprite Packer将时间段...

  • OpenGL设置纹理

    最近在学习OpenGL,把学习的一些过程写在这里,希望与大家共同分享讨论。欢迎光临我的个人网站Orient一起讨论...

  • glTexParameter

    设置纹理参数 指定活动纹理单元的目标纹理,必须是GL_TEXTURE_2D GL_TEXTURE_CUBE_MAP...

  • OpenGL-纹理应用

    纹理坐标 加载纹理只是在几何图形上应用纹理的第一步。最低限度我们必须同时提供纹理坐标,并设置纹理坐标环绕模式和纹理...

网友评论

      本文标题:2023-06-03Unity纹理导入设置

      本文链接:https://www.haomeiwen.com/subject/iflmedtx.html