# Chapter 6 Type and Member Basics # The Different Kinds of Type Members A type can define zero or more of the following kinds of members: Constants A constant is a symbol that identifies a never-changing data value. These symbols are typically used to make code more readable and maintainable....
# Chapter 5 Primitive, Reference, and Value Types # Programming Language Primitive Types Certain data types are so commonly used that many compilers allow code to manipulate them using simplified syntax. For example, you could allocate an integer by using the following syntax. System.Int32 a = new...
# Ray Tracing(光线追踪) 在开始讲光线追踪之前,我们先来讲讲之前遗漏的一个话题,就是在光栅化里面是如何生成阴影的。 我们之前提到着色的时候,知道了着色是一种局部的现象,我们只需要考虑着色点自己、光源以及摄像机,要想算出它的着色,完全不用考虑其它的物体,甚至不考虑这个物体的其它部分对这个着色点的影响。但是事实上这样做是不对的,如果有物体挡在 Shading point 和光源之间,那么光线就到达不了 Shading...
# Chapter 4 Type Fundamentals # 4.1 All Types Are Derived from System.Object The runtime requires every type to ultimately be derived from the System.Object type. This means that the following two type definitions are identical. // Implicitly derived from Objectclass Employee {...