Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サングラス、帽子、チェーンなどのアクセサリーを付けた人間のモデルがあるとします。次のように記述して、libGDX アプリケーション内でこれらの項目の可視性を切り替える方法はありますか。
modelInstance.getNode("sunglasses").setVisible(false)
マテリアルにブレンディング アトリビュートを設定できます。
blendingAttribute = new BlendingAttribute(GL10.GL_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); material = modelinstance.materials.get(0); material.set(blendingAttribute);
次に、次のように不透明度を設定できます。
blendingAttribute.opacity = 0.5F; //0-1