Merge branch 'master' of github.com:supertuxkart/stk-code
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
android:icon="@drawable/icon"
|
||||
android:banner="@drawable/banner"
|
||||
android:hasCode="false"
|
||||
android:isGame="true"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
android:hardwareAccelerated="true">
|
||||
|
||||
@@ -30,8 +31,8 @@
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
<uses-sdk android:minSdkVersion="19" />
|
||||
<uses-sdk android:targetSdkVersion="21" />
|
||||
<uses-sdk android:minSdkVersion="19"
|
||||
android:targetSdkVersion="21" />
|
||||
<uses-feature android:glEsVersion="0x00020000" />
|
||||
<uses-feature android:name="android.software.leanback" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
|
||||
|
||||
@@ -30,7 +30,7 @@ void main()
|
||||
vec3 metallicMatColor = mix(vec3(0.04), diffuse_color_for_mix, metallicMapValue);
|
||||
vec3 tmp = DiffuseComponent * mix(diffuseMatColor.xyz, vec3(0.0), metallicMapValue) + (metallicMatColor * SpecularComponent);
|
||||
|
||||
vec3 emitCol = diffuseMatColor.xyz * diffuseMatColor.xyz * diffuseMatColor.xyz * 15.;
|
||||
vec3 emitCol = diffuseMatColor.xyz + (diffuseMatColor.xyz * diffuseMatColor.xyz * pow(emitMapValue, 2.) * 10.);
|
||||
vec4 color_1 = vec4(tmp * ao + (emitMapValue * emitCol), diffuseMatColor.a);
|
||||
|
||||
// Fog
|
||||
|
||||
@@ -269,13 +269,14 @@ void STKConfig::getAllData(const XMLNode * root)
|
||||
|
||||
if (const XMLNode *camera = root->getNode("camera"))
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
camera->get("fov-1", &m_camera_fov[0]);
|
||||
camera->get("fov-2", &m_camera_fov[1]);
|
||||
camera->get("fov-3", &m_camera_fov[2]);
|
||||
camera->get("fov-4", &m_camera_fov[3]);
|
||||
|
||||
for (unsigned int i = 4; i < MAX_PLAYER_COUNT; i++)
|
||||
{
|
||||
camera->get("fov-" + std::to_string(i + 1), &m_camera_fov[i]);
|
||||
}
|
||||
for (int i = 4; i < MAX_PLAYER_COUNT; i++)
|
||||
{
|
||||
camera->get("fov-" + std::to_string(4), &m_camera_fov[i]);
|
||||
camera->get("fov-4", &m_camera_fov[i]);
|
||||
}
|
||||
camera->get("cutscene-fov", &m_cutscene_fov);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user