- 博客(13)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 glsl中 矩阵和向量的一些常见用法
http://en.wikibooks.org/wiki/GLSL_Programming/Applying_Matrix_Transformations
2019-07-29 10:46:56 1149
原创 react 开始 八 事件传递
class T1 extends React.Component{ constructor(props) { super(props) this.state={ value:1 } this.handleChange=this.handleChange.bind(this) } ...
2019-07-22 09:19:09 151
原创 threejs 第三十八用 MeshToonMaterial
这个MeshToonMaterial材质好像让画面有点动画的感觉threejs交流群511163089
2019-07-18 22:35:44 722
原创 react 开始 七 Key
var a=[ {id:1,value:11}, {id:2,value:22}]function AAA(props){ //map里直接写函数收到iterator一样的东西 然后设置elementconst B = <div>{ props.as.map((param)=><div key={param.id}> {param.value}...
2019-07-16 15:32:43 120
原创 react 开始 六 条件渲染
function In (props){ return <div> 111 </div> }function Out (props){ return <div> 000 </div>}function InOut(props){ const v=props.value;//根据v决定渲染谁 return &l...
2019-07-16 10:01:11 110
原创 react 开始 五 click
class A extends React.Component { constructor(props) { super(props) this.handleClick = this.handleClick.bind(this) //这里要给class的函数绑定this 后面的button里面才找的到this } handl...
2019-07-16 09:16:23 115
原创 react 开始 四 props
class A extends React.Component{ constructor(props) { super(props) } render() { return ( <div> {this.props.xxx} ...
2019-07-15 16:14:10 97
原创 react 开始 三 state
class A extends React.Component{ constructor(props) { super(props) this.state={//靠这个state对象 可以实现值的变化 date:new Date() } } componentDidMount() {//挂载...
2019-07-15 16:05:34 96
原创 react 开始 二 熟悉组件
class A extends React.Component{ constructor(props) { super(props) /**TODO */ } render() { return ( <div> 666 ...
2019-07-15 15:57:05 143
原创 react 开始 一 第一个组件
class A extends React.Component{ constructor(props) { super(props) /**TODO */ } render() { return ( <div> 666 ...
2019-07-15 15:46:54 117
原创 THREEJS 第三十七用 Box包围盒
geometry.computeBoundingBox();//得到一个boxObject.updateMatrixWorld( true );box.copy( Object.geometry.boundingBox ).applyMatrix4( Object.matrixWorld );box.intersectsBox ( box : Box3 )要update对应objec...
2019-07-14 11:04:29 5977
原创 THREEJS 第三十六用 单体发光官方加入THREE啦
106版本 加入了单体发光的DEMO大家快去体验吧之前自己写的 发现别人的代码 结构就很清晰 自己的一团浆糊-v- 都有点不想用自己的了webgl_postprocessing_unreal_bloom_selective 文件名 大家体验一下吧threejs交流群511163089...
2019-07-09 10:27:15 2232
原创 THREEJS 第三十五用 发光感的墙
class Wall{ constructor() { }}var arr = []for (let i = 0; i < n; i++) { arr.push(new THREE.Vector3(x,y,z)}var wall = new Wall(scene, arr);这个可以做这种看起来有点冒光的墙壁传一堆点进来 根据y拉...
2019-07-01 22:10:14 8268 1
VulkanSDK.zip
2020-08-09
boost 无法使用的问题
2016-12-05
TA创建的收藏夹 TA关注的收藏夹
TA关注的人