朱峰社區(qū)首頁 朱峰社區(qū)

搜索資源 注冊|登陸

等待

返回 展開菜單
按功能 按軟件

Unity3D游戲制作教程

Unity3D游戲制作教程

包含5節(jié)視頻教程

本系列包含Unity3D介紹、Unity3D導(dǎo)出人物、Unity3D導(dǎo)出場景、Unity3D導(dǎo)出動作、游戲測試最終完成一個簡單的游戲。是一套非常完整的Unity3D游戲制作教程。

關(guān)閉

Unity組件:Cubemap Texture 立方圖紋理

關(guān)注:2583 留言:0 樓主:羽隨風(fēng) 發(fā)帖時間:15年11月16日

羽隨風(fēng)

普通會員

羽隨風(fēng)

社區(qū)新人:1級

關(guān)注1664人

  • 積分

    1

  • 登陸

    1

  • 發(fā)帖

    1

間隔線

A Cubemap Texture is a collection of six separate square Textures that are put onto the faces of an imaginary cube. Most often they are used to display infinitely faraway reflections on objects, similar to how Skybox displays faraway scenery in the background. The Reflective built-in shaders in Unity use Cubemaps to display reflection.

一個立方圖紋理(Cubemap Texture)六個獨(dú)立的正方形紋理的一個集合,這些紋理會用在一個虛構(gòu)的立方體上。通常用來顯示無限遙遠(yuǎn)的物體上的反射效果。類似的,天空盒(Skybox?)如何在背景顯示遙遠(yuǎn)的風(fēng)景。內(nèi)置的反射(Reflective?)著色器在Unity使用立方圖(Cubemap),以顯示反射。


A mountain scene Cubemap displayed as a reflection on this sphere
一個山區(qū)場景立方圖顯示為在這個球上的反射

You create Cubemap in one of several ways:

您可以用這幾種方式創(chuàng)建立方圖:

  1. Use Assets->Create->Cubemap, set its properties, and drag six Texture assets onto corresponding Cubemap "faces". Note that the textures must be re-applied if changed because the textures are baked into the Cubemap Asset and are in no way linked to the textures.
    用資源>創(chuàng)建?- >?立方圖(Assets->Create->Cubemap),設(shè)置其屬性,并拖6個紋理資源到相應(yīng)立方圖的"面"。注意紋理如果改變了,必須重新指派,因?yàn)榧y理烘焙成立方圖資源就與紋理沒有關(guān)系了。
  2. Use the Texture Import Settings to create a Cubemap from a single imported texture asset.
    使用紋理導(dǎo)入設(shè)置(Texture?Import Settings)從一個單獨(dú)導(dǎo)入的紋理資源創(chuàng)建立方圖。
  3. Render your scene into a cubemap from script. Code example in Camera.RenderToCubemap page contains a script for rendering cubemaps straight from the editor.
    用腳本把你的場景渲染成立方圖(cubemap)。?Camera.RenderToCubemap頁包含直接從編輯器渲染立方圖的腳本代碼示例。
Properties 屬性
  • Right (+X)
    Texture for the right global side of the Cubemap face. 立方圖右面的紋理
  • Left (-X)
    Texture for the up global side of the Cubemap face. 立方圖左面的紋理
  • Top (+Y)
    Texture for the top global side of the Cubemap face. 立方圖頂面的紋理
  • Bottom (-Y)
    Texture for the bottom global side of the Cubemap face. 立方圖底面的紋理
  • Front (+Z)
    Texture for the forward global side of the Cubemap face. 立方圖前面的紋理
  • Back (-Z)
    Texture for the rear global side of the Cubemap face. 立方圖后面的紋理
  • Face Size 面大小
    Width and Height in pixels across each individual Cubemap face. Textures will be internally scaled to fit this size, there is no need to manually scale the assets.
    立方圖每個面的寬度和高度,以像素為單位。紋理將在內(nèi)部縮放,以適應(yīng)這個尺寸,不需要手動縮放資源。
  • Mipmap 多級紋理
    Enable to create mipmaps. 啟用多級紋理
  • Format 格式
    Format of the created cubemap. 創(chuàng)建立方圖的格式

贊0 踩0

未知用戶

2005-2025 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號-1
2005-2025 ZhuFeng Community All Rights Reserved

VIP

朱峰社區(qū)微信公眾號

回頂部

1.復(fù)制文本發(fā)給您的QQ好友或群、微信等;好友點(diǎn)擊鏈接以后,轉(zhuǎn)發(fā)就成功了。 2.如朋友點(diǎn)擊您的鏈接,您需要需刷新一下才行;同一個好友僅能點(diǎn)擊一次。
購買VIP,觀看所有收費(fèi)教程!