当前位置: 首页 > news >正文

wordpress 刷评论数量网站优化排名提升

wordpress 刷评论数量,网站优化排名提升,新疆今天的新消息,网站建设叁金手指花总1一、介绍 主要内容:基础材质(贴图、高光、透明、环境、光照、环境遮蔽贴图) 主要属性: side: three.DoubleSide, //设置双面 color: 0xffffff, //颜色 map: texture, //纹理 transparent: true, // 透明度 aoMap: aoTexture, //ao贴图 aoMapIntensity: 1…

一、介绍

主要内容:基础材质(贴图、高光、透明、环境、光照、环境遮蔽贴图)

主要属性:

          side: three.DoubleSide, //设置双面

          color: 0xffffff, //颜色

          map: texture, //纹理

          transparent: true, // 透明度

          aoMap: aoTexture, //ao贴图

          aoMapIntensity: 1, //ao贴图强调

          alphaMap:alphaMap, //透明度贴图

          lightMap:lightMap,//光照贴图

          reflectivity: 1, //设置反射强度

          specularMap: specularMap //设置高光贴图

二、展示

1、效果

2、代码
// 导入threejs文件
import * as three from 'three'
// 导入轨道控制器
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'
// 导入GUI
import { GUI } from 'three/examples/jsm/libs/lil-gui.module.min.js'
// hdr加载器
import { RGBELoader } from 'three/examples/jsm/loaders/RGBEloader.js'// 创建场景
const scene = new three.Scene()
// 创建相机
const camera = new three.PerspectiveCamera(45, //视角 值越多视野越大window.innerWidth / window.innerHeight, //宽高比0.1, //近平面(相机最近能看到的物体)1000 //远平面(相机最远能看到的物体)
)
// 创建渲染器
const renderer = new three.WebGLRenderer()
renderer.setSize(window.innerWidth, window.innerHeight)
document.body.appendChild(renderer.domElement)//创建纹理加载器
const textureLoader = new three.TextureLoader()
// 加载纹理
let texture = textureLoader.load('./textureImage/southeast.jpg')
//设置颜色空间
texture.colorSpace = three.SRGBColorSpace
//设置线性空间(默认值)
// texture.colorSpace = three.LinearSRGBColorSpace
// 加载ao贴图(环境遮挡贴图)
let aoTexture = textureLoader.load('./textureImage/southeastAO.jpg')
// 加载透明度贴图
let alphaMap = textureLoader.load('./textureImage/tmd.png')
// 加载光照贴图
let lightMap = textureLoader.load('./textureImage/ysbd.jpg')
// 加载hdr贴图
let hdrLoader = new RGBELoader()
let envMap = hdrLoader.load('./textureImage/pz.hdr', (envMap) => {// 设置球形映射envMap.mapping = three.EquirectangularReflectionMapping// 设置环境贴图scene.background = envMap// 设置环境贴图scene.environment = envMap// 设置plane的环境贴图material.envMap = envMap
})
// 设置高光贴图
let specularMap = textureLoader.load('./textureImage/southeast.jpg')// 创建几何体
const geomentry = new three.PlaneGeometry(1, 1)
// 创建材质
const material = new three.MeshBasicMaterial({side: three.DoubleSide, //双面color: 0xffffff, //颜色map: texture, //纹理transparent: true, // 透明度aoMap: aoTexture, //ao贴图aoMapIntensity: 1, //ao贴图强调// alphaMap:alphaMap, //透明度贴图// lightMap:lightMap,//光照贴图reflectivity: 1, //设置反射强度specularMap: specularMap //设置高光贴图
})
let gui = new GUI()
gui.add(material, 'aoMapIntensity').min(0).max(1).name('ao贴图强调')
gui.add(texture, 'colorSpace', {sRGB: three.SRGBColorSpace,Linear: three.LinearSRGBColorSpace}).onChange(() => {texture.needsUpdate = true //设置颜色空间的纹理需要进行更新})
// 创建网格
const cube = new three.Mesh(geomentry, material)
// 加入场景
scene.add(cube)
// 相机位置
camera.position.z = 5 //设置在z轴位置
// 看向位置
camera.lookAt(0, 0, 0) //看向原点
// 创建轨道控制器
const controls = new OrbitControls(camera, renderer.domElement)
controls.enableDamping = true // 启用阻尼系数:值越大,阻尼越明显
controls.dampingFactor = 0.5 //设置阻尼值
controls.enableZoom = true // 启用缩放:值为false时禁止缩放
// controls.autoRotate = true // 启用自动旋转:值为true时禁止手动旋转
controls.autoRotateSpeed = 0.5 // 自动旋转速度
// 渲染函数
const animate = () => {controls.update()requestAnimationFrame(animate) //每一帧调用函数// 旋转// cube.rotation.x += 0.01 // X轴转// cube.rotation.y += 0.01 // Y轴转renderer.render(scene, camera) // 重新渲染
}
animate()

http://www.ds6.com.cn/news/122483.html

相关文章:

  • 用me做后缀的网站公关公司排名
  • 盐城网站推广网站排名查询站长之家
  • 网站建设 收费明细my77728域名查询
  • 网站建设公司哪个好点国际重大新闻事件10条
  • 河南如何做网站seo是什么学校
  • wordpress自动标签页泰安优化关键词排名哪家合适
  • 哪里有给网站做上海关键词推广公司
  • 微网站的优缺点灰色关键词怎么做排名
  • 南京市住房城乡建设委官方网站广州seo推广运营专员
  • 网络安全维护公司简述如何优化网站的方法
  • 网站安全狗服务名中国最新新闻
  • 古典风格网站模板怎么看百度关键词的搜索量
  • 电商网站在线支付怎么做广州seo推广公司
  • 宜春网站建设推广南京seo网站管理
  • mc做地图画网站seo描述是什么
  • wordpress线上聊天插件重庆seo培训
  • 在阿里巴巴做网站佛山seo教程
  • 西安市建设工程信息网官网合肥优化
  • 做网站开发需要的英语水平视频号下载器手机版
  • 太原定制网站开发制作免费建站网站一级
  • 订阅号做微网站需要认证吗网店怎么运营和推广
  • 苏州集团网站设计企业推介网
  • 服务外包的三种形式聊石家庄seo
  • 五莲做网站广告联盟平台哪个好
  • 网站怎么做app吗新浪网今日乌鲁木齐新闻
  • 科技类公司网站设计nba中国官方网站
  • 如何给网站引流百度提交入口网址截图
  • 一流的常州网站优化知名的seo快速排名多少钱
  • 网站和服务器是什么西安seo包年服务
  • 站酷网素材图库海报设计pc端网页设计公司