此文仅作备份之用,为了更好的阅读体验,建议访问原文链接:《Three.js - 走进3D的奇妙世界。》 ,感谢原作者的好文。 ...
分类:
Web程序 时间:
2019-12-14 09:38:27
阅读次数:
71
three.js常用材质:基本材质、兰伯特材质、冯氏材质、标准材质。 我们可以自己使用着色器实现这些材质,用于批量渲染等用途。 为了简单,假设物体只有一张漫反射贴图,场景中只存在一个环境光和一个平行光。 一、基本材质(MeshBasicMaterial) 基本材质不对光源产生反应。 顶点着色器 片源 ...
分类:
Web程序 时间:
2019-12-14 00:02:04
阅读次数:
148
3.1 基本几何形状 圆形(CircleGeometry) 说明: 可以创建圆形或者扇形 构造函数: THREE.CircleGeometry(radius, segments, thetaStart, thetaLength) radius:半径; segments:以一个点为中心的切片数(切蛋糕 ...
分类:
Web程序 时间:
2019-12-13 09:29:56
阅读次数:
227
题目的英文版是这样的: You are given a m x n 2D grid initialized with these three possible values. 1 A wall or an obstacle. 0 A gate. INF Infinity means an empty ...
分类:
其他好文 时间:
2019-12-12 18:21:18
阅读次数:
80
1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 <m ...
分类:
Web程序 时间:
2019-12-12 01:04:04
阅读次数:
131
步骤:1、先执行括号里的语句:查询 select id from three ,将查询出来的数据作为一个结果集 取名为 a2、然后 再 select * from a 查询a ,将 结果集a 全部查询出来 select * from (select id from three)a; ...
分类:
其他好文 时间:
2019-12-11 23:16:19
阅读次数:
145
【部分中英文对照】 Cameras(照相机,控制投影方式) Camera OrthographicCamera 正交相机 PerspectiveCamera 透视相机 Core(核心对象) BufferGeometry 缓冲几何 Clock(用来记录时间) EventDispatcher 事件调度 ...
分类:
Web程序 时间:
2019-12-11 17:12:44
阅读次数:
157
public class Three { public static void main(String[] args) { try{ changeEncoding("GBK","UTF-8","ccom\\xxdc\\琵琶行_GBK.txt","20190810\\琵琶行_UTF8.txt"); } ...
分类:
其他好文 时间:
2019-12-10 22:37:01
阅读次数:
107
[root@node10 ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enf ...
分类:
系统相关 时间:
2019-12-09 19:21:41
阅读次数:
104
原题链接在这里:https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/ 题目: In a given array nums of positive integers, find three non-overl ...
分类:
移动开发 时间:
2019-12-09 14:08:23
阅读次数:
92