Deferred lighting in progress
Now able to dynamically switch between shaders for lights and objects --HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4046
This commit is contained in:
@@ -107,54 +107,10 @@
|
||||
NSString* path = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
|
||||
[renderEngine loadResource: path];
|
||||
}
|
||||
//
|
||||
// for (NSString* fileName in [fileManager contentsOfDirectoryAtPath: documentsDirectory error:nil]) {
|
||||
// if([fileName hasSuffix: @".scene"]) {
|
||||
// NSString* path = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
|
||||
// [renderEngine loadResource: path];
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// for (NSString* fileName in [fileManager contentsOfDirectoryAtPath: documentsDirectory error:nil]) {
|
||||
// if([fileName hasSuffix: @".pvr"]) {
|
||||
// NSString* path = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
|
||||
// [renderEngine loadResource: path];
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// for (NSString* fileName in [fileManager contentsOfDirectoryAtPath: documentsDirectory error:nil]) {
|
||||
// if([fileName hasSuffix: @".mtl"]) {
|
||||
// NSString* path = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
|
||||
// [renderEngine loadResource: path];
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// for (NSString* fileName in [fileManager contentsOfDirectoryAtPath: documentsDirectory error:nil]) {
|
||||
// if([fileName hasSuffix: @".krobject"]) {
|
||||
// NSString* path = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
|
||||
// [renderEngine loadResource: path];
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// for (NSString* fileName in [fileManager contentsOfDirectoryAtPath: documentsDirectory error:nil]) {
|
||||
// if([fileName hasSuffix: @".krscene"]) {
|
||||
// NSString* path = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
|
||||
// [renderEngine loadResource: path];
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
[renderEngine setNearZ: 25.0];
|
||||
[renderEngine setFarZ: 5000.0];
|
||||
/*
|
||||
|
||||
startPos 156.0 -55.0 -825.0
|
||||
touchScale 95.0
|
||||
nearZ 25.0
|
||||
farZ 5000.0
|
||||
|
||||
*/
|
||||
|
||||
// [renderEngine setParameterValueWithName: @];
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user