ThankS
  • techbrood
  • web lover
  • 积分:23271 发表:23118

three.js教程:使用索引贴图实现地图区域选中和着色

three.js indexed textures for world map picking and color。按住shift可以多选。 //本例实现思路: // 1. 使用indexTexture来构建和获取颜色索引 // 2. 使用paletteTexture来作为调色板,根据索引返回真实的rgb颜色值 // 3. 选中时,通过改变paletteTexture中的颜色来改变实际使用的indexTexture颜色值

注:如有问题敬请及时联系我们