Commit Graph

1773 Commits (master)

Author SHA1 Message Date
tsoj 31939ba721
Add update all option to OXP manager (#381)
Closes #341
2021-02-22 16:16:33 +01:00
AnotherCommander a3fbbe7e07 Changed atmosphere desnity rendering to something that looks more similar to what we had before its initial implementation, at the same time widening the atmosphere densities envelope that can be represented in the 0.0 ... 1.0 range. 2020-12-01 17:19:44 +01:00
AnotherCommander 1074e37770 Implemented atmosphere desnity for planets. Range is from 0.0 to 1.0, default 0.75. The relevant properties are air_density for planetinfo.plist and airDensity for the JS planet entity. 2020-11-22 14:30:26 +01:00
AnotherCommander 21bcc59a10 Bump master version to 1.91. 2020-08-30 14:28:12 +02:00
AnotherCommander 860b9d8262 Adding extra laser sounds and associated configuration. Thanks @phkb. 2020-08-24 12:47:10 +02:00
AnotherCommander 682878fc9d Bump version number to 1.90. 2020-08-21 09:23:53 +02:00
AnotherCommander 83ba610bbf Updated year to 2020 on remaining files. Better late than never, I guess. 2020-08-17 19:17:42 +02:00
AnotherCommander 57a355da25 Use correct reflectivity at normal incidence values for water (0.02) and land masses (standard dielectric material F0 of 0.04) during the fresnel calculations in the planet fragment shader. 2020-08-14 07:48:12 +02:00
phkb 88e99d47dd
Added check to avoid null values in equipmentInfo items (#363)
And added a variable declaration
2020-08-13 08:02:48 +03:00
AnotherCommander 716f13daf9 Minor fixes to the indentation of oolite-equipment-control.js. 2020-08-12 10:00:13 +02:00
phkb f999fe8658
Ensure any equipment incompatibility refs are enforced (#362)
Regardless of the order of loading
2020-08-12 08:56:55 +03:00
AnotherCommander bd0bf3f85a Planetary terminator threshold vector is now a user defined parameter. It can either be defined in planetinfo.plist using the terminator_threshold_vector key or by script using the Planet property terminatorThresholdVector. Default is the currently used value ([0.105, 0.18, 0.28]). Reorte has been made to have a blue terminator as a means of demonstrating the feature. 2020-08-06 16:30:15 +02:00
AnotherCommander 2ae7457b32
Fixed potential default shader compile error.
After the introduction of the Oren-Nayar diffuse BRDF, in some cases eyeVector could end up not being defined, leading up to compile errors since Oren-Nayar needs it in its calculations. This fix ensures that eyeVector is always defined when Oren-Nayar is in use.
2020-07-29 09:28:12 +03:00
AnotherCommander 2d1bcb200f Atmosphere color parameters can now be also controlled from the JS Planet object. This enables script control over atmospheres of OXP added planets. The two new properties are airColor and airColorMixRatio. The system.info.airColor and .airColorMixRatio remain but control only the main system planet. 2020-07-23 20:47:37 +02:00
AnotherCommander 3021c8f3ca Amount of air color mix with atmosphere standard color is now fully settable from planetinfo.plist using the air_color_mix_ratio key. The atmosphere color mix ratio can be set by scripts too, using the read/write system.info.air_color_mix_ratio property. 2020-07-23 14:49:11 +02:00
phkb 95ab3d4a39
Protection for ship launches (#355)
In case where ship is too big for a dock and can't be launched.
2020-07-23 15:02:17 +03:00
AnotherCommander 8d0184346d Forgot to add the Lave atmo color change in previous commit. 2020-07-22 18:22:14 +02:00
AnotherCommander 02218d7461 Atmosphere color is now fully settable from planetinfo.plist using the air_color key. This affects also the atmosphere scatter color in the atmo shader. Lave atmosphere color set to blue to demonstrate this. Atmo color can be set by scripts too, using the read/write system.info.air_color property. Also, reduced lightsource radiance in the planet shader to bring it more inline with the atmo one. 2020-07-22 18:21:07 +02:00
AnotherCommander 94d89fdd55 The number of turrets on a ship, if they exist, is now shown on the Ship Library screen. 2020-07-16 13:07:40 +02:00
AnotherCommander 4b32de3a9f Temporarily increased sun light source luminance and enabled Oren-Nayar diffuse rendering for testing. 2020-07-12 12:49:39 +02:00
phkb 92778b72f2
Fix for the thargoidStrikes populator setting (#351) 2020-06-30 08:52:39 +03:00
phkb 66291517c1
Missiles in ship missiles array do not have a primary role (#352)
equipmentKey should be used instead
2020-06-30 08:52:11 +03:00
AnotherCommander 5f68e4ced0 Fixed a typo in the atmosphere shader and removed a comment that is not valid anymore from the shader material header. 2020-06-14 16:09:33 +02:00
AnotherCommander be09bf8e74 Corrected an error on the Oren-Nayar implementation in the planet and ship shaders. 2020-06-11 13:07:46 +02:00
AnotherCommander 74b180735a Introduced Oren-Nayar as a possible diffuse BRDF alternative. We are still defaulting to lambertian diffuse, though. To use Oren-Nayar, set the OODIFFUSE_ORENNAYAR macro in the default planet and ship shaders to 1. 2020-06-07 22:59:18 +02:00
AnotherCommander 104f9c045d Introduced light source radiance and exposure multipliers in the planet, atmosphere and ship shaders. This allows some more control over the intensity of the light source and the overall amount of light in the scene. Default values for all mutlipliers are set to 1.0. 2020-05-17 22:19:23 +02:00
AnotherCommander 1fcfbb89f7 Ensure that the alpha channel of our pixels is clamped within 0.0 to 1.0 in the default shader. It seems that some drivers fail at that, so we do it for them. 2020-05-10 00:05:32 +02:00
AnotherCommander 3b91106d0b Illumination mapping of the dark side of custom planets is now supported on the diffuse map's alpha channel. If the alpha channel is used in the diffuse map, low values correspond to high illumination. 2020-04-29 16:17:50 +02:00
AnotherCommander 938d49eeca Custom planets now support normal maps, with specular on their alpha channel. 2020-04-17 13:44:18 +02:00
AnotherCommander 6cf1826e1f
Atmosphere haze intensity returned to its previous value. 2020-04-14 14:55:35 +02:00
AnotherCommander d33a8c231e Fixed planet shader, which had the planet diffuse lighting broken big time by the last commit. Also, in the default shader, specular color was multiplied twice in the total light calculation. Fixed incorrect handling of light source color on both shaders. 2020-04-12 17:17:58 +02:00
AnotherCommander 3d202eec67 Some improvements on the specular part of the planet shader. 2020-04-10 19:35:30 +02:00
AnotherCommander c72d619027 Filmic tonemapping should touch only the rgb channels, not the alpha. Thanks to smcameron for the catch. 2020-04-07 08:34:08 +02:00
AnotherCommander bc9636e451
One more update to the atmosphere shader.
Visual improvement: at the very edge of the atmosphere, use more bias color.
2020-01-10 10:20:00 +01:00
phkb 49ee05b273
Merge pull request #344 from OoliteProject/new_nav_beacon
Adding new nav beacon model+textures
2019-12-29 10:50:15 +11:00
phkb 6f8130e4a3 Adding gloss value to shipdata 2019-12-19 19:59:22 +11:00
phkb 653fb5b2d8 Removing normal binary file 2019-12-18 06:43:43 +11:00
phkb 2ffd143c54 Removing normal map 2019-12-18 06:42:14 +11:00
phkb 54531bf80e Adding resources for new nav beacon 2019-12-16 14:51:22 +11:00
phkb d0acaabfee Adding new nav beacon model and textures 2019-12-16 14:36:40 +11:00
AnotherCommander 4636ee2281 A few improvements on the atmosphere shader. 2019-11-21 12:50:27 +01:00
AnotherCommander cb2c771872
Main menu revamp: Replacing key menu item with Game Options. Game Options items that are controlled by savegames are greyed out when viewed from the intro screen. Some code refactoring. (#334) 2019-04-28 12:06:17 +03:00
AnotherCommander 601128c035 Atmosphere shader: auto-calculate cosThreshold based on atmosphere radius. 2019-03-09 20:45:07 +01:00
AnotherCommander f02f09b91a Minor adjustments to atmosphere shader. 2019-03-08 23:05:21 +01:00
AnotherCommander 3981bfaf47 Oopsie, sorted out some comments. 2019-03-07 20:55:58 +01:00
AnotherCommander cdaf689263 Fixed black stripe at dark part of atmosphere circumference. Also, gamma corrected atmopshere. 2019-03-07 20:51:10 +01:00
AnotherCommander 65f9d706d5 Lave has now got its rain forests. 2019-01-25 14:07:52 +01:00
AnotherCommander eb9ccb0383 Added more haze to default atmosphere for improved looks and feel of scale. 2019-01-25 11:35:29 +01:00
AnotherCommander 35e398ed00 Added a thickness component for the 'inner' atmosphere opacity. It is based on the 1.86 atmosphere shader and the contribution of the new and old components is 0.5 for each. 2019-01-19 17:44:46 +01:00
AnotherCommander 3dbfc6b472 The quest for pretty atmospheres continues. Further tweaks to the atmosphere shader, hopefully we got it this time round. 2019-01-06 19:00:33 +01:00