物体反射颜色的计算采用这样的模型: vec3 reflectionColor = objColor * lightColor;//物体反射颜色 = 物体颜色 * 光源颜色。 (vec3(r,g,b), r,g,b在[0,1]范围里)。 比如:光源是自然光:lightColor = vec3(1.0, ...
分类:
其他好文 时间:
2017-12-04 13:18:19
阅读次数:
358
/************************************************************************* > File Name: L.cpp > Author: LyuCheng > Created Time: 2017-12-03 17:31 > De... ...
分类:
其他好文 时间:
2017-12-03 18:11:21
阅读次数:
153
+:算符的加法;连接字符串 加法会将其它类型的值,自动转为字符串,然后再进行连接运算! JavaScript中有9个运算符: +(加法:Addition),-(加法:Subtraction),*(乘法:Multiplication),/(除法:Division),%(取余:Remainder),++ ...
分类:
编程语言 时间:
2017-12-01 11:44:04
阅读次数:
287
描述 Given 2 nonnegative integers a and b, calculate a × b. 输入 One line with 2 integers a and b separated by a single space. 0 ≤ a, b ≤ 10100. 输出 The va ...
分类:
其他好文 时间:
2017-11-27 13:30:24
阅读次数:
114
题目链接:http://poj.org/problem?id=1651 Time Limit: 1000MS Memory Limit: 65536K Description The multiplication puzzle is played with a row of cards, each ...
分类:
其他好文 时间:
2017-11-24 21:29:32
阅读次数:
167
Given a positive integer a, find the smallest positive integer b whose multiplication of each digit equals to a. If there is no answer or the answer i ...
分类:
其他好文 时间:
2017-11-24 15:09:15
阅读次数:
183
29. Divide Two Integers Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 这题真的无能为力,js写法一 ...
分类:
其他好文 时间:
2017-10-20 10:16:42
阅读次数:
141
Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the defin ...
分类:
其他好文 时间:
2017-10-18 14:09:32
阅读次数:
106
A Cubic number and A Cubic Number Problem Description A cubic number is the result of using a whole number in a multiplication three times. For exampl ...
分类:
其他好文 时间:
2017-10-02 18:24:53
阅读次数:
128
///@date 9/26/2017///@author Sycamore///@link http://acm.hdu.edu.cn/showproblem.php?pid=4920#includeusing namespace std;int main(){ ios::sync_with_std... ...
分类:
其他好文 时间:
2017-09-26 21:00:24
阅读次数:
116